AWS SDK for C++

AWS SDK for C++ Version 1.11.750

Loading...
Searching...
No Matches
ListIntentsRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/lexv2-models/LexModelsV2Request.h>
10#include <aws/lexv2-models/LexModelsV2_EXPORTS.h>
11#include <aws/lexv2-models/model/IntentFilter.h>
12#include <aws/lexv2-models/model/IntentSortBy.h>
13
14#include <utility>
15
16namespace Aws {
17namespace LexModelsV2 {
18namespace Model {
19
23 public:
24 AWS_LEXMODELSV2_API ListIntentsRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "ListIntents"; }
31
32 AWS_LEXMODELSV2_API Aws::String SerializePayload() const override;
33
35
38 inline const Aws::String& GetBotId() const { return m_botId; }
39 inline bool BotIdHasBeenSet() const { return m_botIdHasBeenSet; }
40 template <typename BotIdT = Aws::String>
41 void SetBotId(BotIdT&& value) {
42 m_botIdHasBeenSet = true;
43 m_botId = std::forward<BotIdT>(value);
44 }
45 template <typename BotIdT = Aws::String>
46 ListIntentsRequest& WithBotId(BotIdT&& value) {
47 SetBotId(std::forward<BotIdT>(value));
48 return *this;
49 }
51
53
56 inline const Aws::String& GetBotVersion() const { return m_botVersion; }
57 inline bool BotVersionHasBeenSet() const { return m_botVersionHasBeenSet; }
58 template <typename BotVersionT = Aws::String>
59 void SetBotVersion(BotVersionT&& value) {
60 m_botVersionHasBeenSet = true;
61 m_botVersion = std::forward<BotVersionT>(value);
62 }
63 template <typename BotVersionT = Aws::String>
64 ListIntentsRequest& WithBotVersion(BotVersionT&& value) {
65 SetBotVersion(std::forward<BotVersionT>(value));
66 return *this;
67 }
69
71
77 inline const Aws::String& GetLocaleId() const { return m_localeId; }
78 inline bool LocaleIdHasBeenSet() const { return m_localeIdHasBeenSet; }
79 template <typename LocaleIdT = Aws::String>
80 void SetLocaleId(LocaleIdT&& value) {
81 m_localeIdHasBeenSet = true;
82 m_localeId = std::forward<LocaleIdT>(value);
83 }
84 template <typename LocaleIdT = Aws::String>
85 ListIntentsRequest& WithLocaleId(LocaleIdT&& value) {
86 SetLocaleId(std::forward<LocaleIdT>(value));
87 return *this;
88 }
90
92
97 inline const IntentSortBy& GetSortBy() const { return m_sortBy; }
98 inline bool SortByHasBeenSet() const { return m_sortByHasBeenSet; }
99 template <typename SortByT = IntentSortBy>
100 void SetSortBy(SortByT&& value) {
101 m_sortByHasBeenSet = true;
102 m_sortBy = std::forward<SortByT>(value);
103 }
104 template <typename SortByT = IntentSortBy>
105 ListIntentsRequest& WithSortBy(SortByT&& value) {
106 SetSortBy(std::forward<SortByT>(value));
107 return *this;
108 }
110
112
117 inline const Aws::Vector<IntentFilter>& GetFilters() const { return m_filters; }
118 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
119 template <typename FiltersT = Aws::Vector<IntentFilter>>
120 void SetFilters(FiltersT&& value) {
121 m_filtersHasBeenSet = true;
122 m_filters = std::forward<FiltersT>(value);
123 }
124 template <typename FiltersT = Aws::Vector<IntentFilter>>
125 ListIntentsRequest& WithFilters(FiltersT&& value) {
126 SetFilters(std::forward<FiltersT>(value));
127 return *this;
128 }
129 template <typename FiltersT = IntentFilter>
130 ListIntentsRequest& AddFilters(FiltersT&& value) {
131 m_filtersHasBeenSet = true;
132 m_filters.emplace_back(std::forward<FiltersT>(value));
133 return *this;
134 }
136
138
143 inline int GetMaxResults() const { return m_maxResults; }
144 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
145 inline void SetMaxResults(int value) {
146 m_maxResultsHasBeenSet = true;
147 m_maxResults = value;
148 }
150 SetMaxResults(value);
151 return *this;
152 }
154
156
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) {
169 m_nextTokenHasBeenSet = true;
170 m_nextToken = std::forward<NextTokenT>(value);
171 }
172 template <typename NextTokenT = Aws::String>
173 ListIntentsRequest& WithNextToken(NextTokenT&& value) {
174 SetNextToken(std::forward<NextTokenT>(value));
175 return *this;
176 }
178 private:
179 Aws::String m_botId;
180
181 Aws::String m_botVersion;
182
183 Aws::String m_localeId;
184
185 IntentSortBy m_sortBy;
186
188
189 int m_maxResults{0};
190
191 Aws::String m_nextToken;
192 bool m_botIdHasBeenSet = false;
193 bool m_botVersionHasBeenSet = false;
194 bool m_localeIdHasBeenSet = false;
195 bool m_sortByHasBeenSet = false;
196 bool m_filtersHasBeenSet = false;
197 bool m_maxResultsHasBeenSet = false;
198 bool m_nextTokenHasBeenSet = false;
199};
200
201} // namespace Model
202} // namespace LexModelsV2
203} // namespace Aws
virtual const char * GetServiceRequestName() const override
ListIntentsRequest & WithSortBy(SortByT &&value)
ListIntentsRequest & WithBotId(BotIdT &&value)
ListIntentsRequest & WithBotVersion(BotVersionT &&value)
AWS_LEXMODELSV2_API Aws::String SerializePayload() const override
AWS_LEXMODELSV2_API ListIntentsRequest()=default
const Aws::Vector< IntentFilter > & GetFilters() const
ListIntentsRequest & WithMaxResults(int value)
ListIntentsRequest & AddFilters(FiltersT &&value)
ListIntentsRequest & WithNextToken(NextTokenT &&value)
ListIntentsRequest & WithLocaleId(LocaleIdT &&value)
ListIntentsRequest & WithFilters(FiltersT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector