AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
ListIntentMetricsRequest.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/AnalyticsIntentMetric.h>
13#include <aws/lexv2-models/model/AnalyticsBinBySpecification.h>
14#include <aws/lexv2-models/model/AnalyticsIntentGroupBySpecification.h>
15#include <aws/lexv2-models/model/AnalyticsIntentFilter.h>
16#include <utility>
17
18namespace Aws
19{
20namespace LexModelsV2
21{
22namespace Model
23{
24
28 {
29 public:
30 AWS_LEXMODELSV2_API ListIntentMetricsRequest() = 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 "ListIntentMetrics"; }
37
38 AWS_LEXMODELSV2_API Aws::String SerializePayload() const override;
39
40
42
45 inline const Aws::String& GetBotId() const { return m_botId; }
46 inline bool BotIdHasBeenSet() const { return m_botIdHasBeenSet; }
47 template<typename BotIdT = Aws::String>
48 void SetBotId(BotIdT&& value) { m_botIdHasBeenSet = true; m_botId = std::forward<BotIdT>(value); }
49 template<typename BotIdT = Aws::String>
50 ListIntentMetricsRequest& WithBotId(BotIdT&& value) { SetBotId(std::forward<BotIdT>(value)); return *this;}
52
54
58 inline const Aws::Utils::DateTime& GetStartDateTime() const { return m_startDateTime; }
59 inline bool StartDateTimeHasBeenSet() const { return m_startDateTimeHasBeenSet; }
60 template<typename StartDateTimeT = Aws::Utils::DateTime>
61 void SetStartDateTime(StartDateTimeT&& value) { m_startDateTimeHasBeenSet = true; m_startDateTime = std::forward<StartDateTimeT>(value); }
62 template<typename StartDateTimeT = Aws::Utils::DateTime>
63 ListIntentMetricsRequest& WithStartDateTime(StartDateTimeT&& value) { SetStartDateTime(std::forward<StartDateTimeT>(value)); return *this;}
65
67
71 inline const Aws::Utils::DateTime& GetEndDateTime() const { return m_endDateTime; }
72 inline bool EndDateTimeHasBeenSet() const { return m_endDateTimeHasBeenSet; }
73 template<typename EndDateTimeT = Aws::Utils::DateTime>
74 void SetEndDateTime(EndDateTimeT&& value) { m_endDateTimeHasBeenSet = true; m_endDateTime = std::forward<EndDateTimeT>(value); }
75 template<typename EndDateTimeT = Aws::Utils::DateTime>
76 ListIntentMetricsRequest& WithEndDateTime(EndDateTimeT&& value) { SetEndDateTime(std::forward<EndDateTimeT>(value)); return *this;}
78
80
85 inline const Aws::Vector<AnalyticsIntentMetric>& GetMetrics() const { return m_metrics; }
86 inline bool MetricsHasBeenSet() const { return m_metricsHasBeenSet; }
87 template<typename MetricsT = Aws::Vector<AnalyticsIntentMetric>>
88 void SetMetrics(MetricsT&& value) { m_metricsHasBeenSet = true; m_metrics = std::forward<MetricsT>(value); }
89 template<typename MetricsT = Aws::Vector<AnalyticsIntentMetric>>
90 ListIntentMetricsRequest& WithMetrics(MetricsT&& value) { SetMetrics(std::forward<MetricsT>(value)); return *this;}
91 template<typename MetricsT = AnalyticsIntentMetric>
92 ListIntentMetricsRequest& AddMetrics(MetricsT&& value) { m_metricsHasBeenSet = true; m_metrics.emplace_back(std::forward<MetricsT>(value)); return *this; }
94
96
100 inline const Aws::Vector<AnalyticsBinBySpecification>& GetBinBy() const { return m_binBy; }
101 inline bool BinByHasBeenSet() const { return m_binByHasBeenSet; }
102 template<typename BinByT = Aws::Vector<AnalyticsBinBySpecification>>
103 void SetBinBy(BinByT&& value) { m_binByHasBeenSet = true; m_binBy = std::forward<BinByT>(value); }
104 template<typename BinByT = Aws::Vector<AnalyticsBinBySpecification>>
105 ListIntentMetricsRequest& WithBinBy(BinByT&& value) { SetBinBy(std::forward<BinByT>(value)); return *this;}
106 template<typename BinByT = AnalyticsBinBySpecification>
107 ListIntentMetricsRequest& AddBinBy(BinByT&& value) { m_binByHasBeenSet = true; m_binBy.emplace_back(std::forward<BinByT>(value)); return *this; }
109
111
119 inline const Aws::Vector<AnalyticsIntentGroupBySpecification>& GetGroupBy() const { return m_groupBy; }
120 inline bool GroupByHasBeenSet() const { return m_groupByHasBeenSet; }
121 template<typename GroupByT = Aws::Vector<AnalyticsIntentGroupBySpecification>>
122 void SetGroupBy(GroupByT&& value) { m_groupByHasBeenSet = true; m_groupBy = std::forward<GroupByT>(value); }
123 template<typename GroupByT = Aws::Vector<AnalyticsIntentGroupBySpecification>>
124 ListIntentMetricsRequest& WithGroupBy(GroupByT&& value) { SetGroupBy(std::forward<GroupByT>(value)); return *this;}
125 template<typename GroupByT = AnalyticsIntentGroupBySpecification>
126 ListIntentMetricsRequest& AddGroupBy(GroupByT&& value) { m_groupByHasBeenSet = true; m_groupBy.emplace_back(std::forward<GroupByT>(value)); return *this; }
128
130
134 inline const Aws::Vector<AnalyticsIntentFilter>& GetFilters() const { return m_filters; }
135 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
136 template<typename FiltersT = Aws::Vector<AnalyticsIntentFilter>>
137 void SetFilters(FiltersT&& value) { m_filtersHasBeenSet = true; m_filters = std::forward<FiltersT>(value); }
138 template<typename FiltersT = Aws::Vector<AnalyticsIntentFilter>>
139 ListIntentMetricsRequest& WithFilters(FiltersT&& value) { SetFilters(std::forward<FiltersT>(value)); return *this;}
140 template<typename FiltersT = AnalyticsIntentFilter>
141 ListIntentMetricsRequest& AddFilters(FiltersT&& value) { m_filtersHasBeenSet = true; m_filters.emplace_back(std::forward<FiltersT>(value)); return *this; }
143
145
150 inline int GetMaxResults() const { return m_maxResults; }
151 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
152 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
153 inline ListIntentMetricsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
155
157
165 inline const Aws::String& GetNextToken() const { return m_nextToken; }
166 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
167 template<typename NextTokenT = Aws::String>
168 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
169 template<typename NextTokenT = Aws::String>
170 ListIntentMetricsRequest& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
172 private:
173
174 Aws::String m_botId;
175 bool m_botIdHasBeenSet = false;
176
177 Aws::Utils::DateTime m_startDateTime{};
178 bool m_startDateTimeHasBeenSet = false;
179
180 Aws::Utils::DateTime m_endDateTime{};
181 bool m_endDateTimeHasBeenSet = false;
182
184 bool m_metricsHasBeenSet = false;
185
187 bool m_binByHasBeenSet = false;
188
190 bool m_groupByHasBeenSet = false;
191
193 bool m_filtersHasBeenSet = false;
194
195 int m_maxResults{0};
196 bool m_maxResultsHasBeenSet = false;
197
198 Aws::String m_nextToken;
199 bool m_nextTokenHasBeenSet = false;
200 };
201
202} // namespace Model
203} // namespace LexModelsV2
204} // namespace Aws
const Aws::Vector< AnalyticsIntentMetric > & GetMetrics() const
const Aws::Vector< AnalyticsIntentGroupBySpecification > & GetGroupBy() const
const Aws::Utils::DateTime & GetStartDateTime() const
ListIntentMetricsRequest & WithGroupBy(GroupByT &&value)
ListIntentMetricsRequest & WithStartDateTime(StartDateTimeT &&value)
ListIntentMetricsRequest & WithEndDateTime(EndDateTimeT &&value)
const Aws::Vector< AnalyticsBinBySpecification > & GetBinBy() const
AWS_LEXMODELSV2_API ListIntentMetricsRequest()=default
ListIntentMetricsRequest & WithBotId(BotIdT &&value)
ListIntentMetricsRequest & WithNextToken(NextTokenT &&value)
ListIntentMetricsRequest & AddFilters(FiltersT &&value)
ListIntentMetricsRequest & AddMetrics(MetricsT &&value)
ListIntentMetricsRequest & WithFilters(FiltersT &&value)
ListIntentMetricsRequest & AddBinBy(BinByT &&value)
virtual const char * GetServiceRequestName() const override
const Aws::Vector< AnalyticsIntentFilter > & GetFilters() const
AWS_LEXMODELSV2_API Aws::String SerializePayload() const override
ListIntentMetricsRequest & WithBinBy(BinByT &&value)
ListIntentMetricsRequest & WithMetrics(MetricsT &&value)
ListIntentMetricsRequest & AddGroupBy(GroupByT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector