AWS SDK for C++

AWS SDK for C++ Version 1.11.750

Loading...
Searching...
No Matches
ListSlotsRequest.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/SlotFilter.h>
12#include <aws/lexv2-models/model/SlotSortBy.h>
13
14#include <utility>
15
16namespace Aws {
17namespace LexModelsV2 {
18namespace Model {
19
23 public:
24 AWS_LEXMODELSV2_API ListSlotsRequest() = 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 "ListSlots"; }
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 ListSlotsRequest& 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 ListSlotsRequest& 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 ListSlotsRequest& WithLocaleId(LocaleIdT&& value) {
86 SetLocaleId(std::forward<LocaleIdT>(value));
87 return *this;
88 }
90
92
95 inline const Aws::String& GetIntentId() const { return m_intentId; }
96 inline bool IntentIdHasBeenSet() const { return m_intentIdHasBeenSet; }
97 template <typename IntentIdT = Aws::String>
98 void SetIntentId(IntentIdT&& value) {
99 m_intentIdHasBeenSet = true;
100 m_intentId = std::forward<IntentIdT>(value);
101 }
102 template <typename IntentIdT = Aws::String>
103 ListSlotsRequest& WithIntentId(IntentIdT&& value) {
104 SetIntentId(std::forward<IntentIdT>(value));
105 return *this;
106 }
108
110
115 inline const SlotSortBy& GetSortBy() const { return m_sortBy; }
116 inline bool SortByHasBeenSet() const { return m_sortByHasBeenSet; }
117 template <typename SortByT = SlotSortBy>
118 void SetSortBy(SortByT&& value) {
119 m_sortByHasBeenSet = true;
120 m_sortBy = std::forward<SortByT>(value);
121 }
122 template <typename SortByT = SlotSortBy>
123 ListSlotsRequest& WithSortBy(SortByT&& value) {
124 SetSortBy(std::forward<SortByT>(value));
125 return *this;
126 }
128
130
135 inline const Aws::Vector<SlotFilter>& GetFilters() const { return m_filters; }
136 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
137 template <typename FiltersT = Aws::Vector<SlotFilter>>
138 void SetFilters(FiltersT&& value) {
139 m_filtersHasBeenSet = true;
140 m_filters = std::forward<FiltersT>(value);
141 }
142 template <typename FiltersT = Aws::Vector<SlotFilter>>
143 ListSlotsRequest& WithFilters(FiltersT&& value) {
144 SetFilters(std::forward<FiltersT>(value));
145 return *this;
146 }
147 template <typename FiltersT = SlotFilter>
148 ListSlotsRequest& AddFilters(FiltersT&& value) {
149 m_filtersHasBeenSet = true;
150 m_filters.emplace_back(std::forward<FiltersT>(value));
151 return *this;
152 }
154
156
161 inline int GetMaxResults() const { return m_maxResults; }
162 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
163 inline void SetMaxResults(int value) {
164 m_maxResultsHasBeenSet = true;
165 m_maxResults = value;
166 }
167 inline ListSlotsRequest& WithMaxResults(int value) {
168 SetMaxResults(value);
169 return *this;
170 }
172
174
180 inline const Aws::String& GetNextToken() const { return m_nextToken; }
181 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
182 template <typename NextTokenT = Aws::String>
183 void SetNextToken(NextTokenT&& value) {
184 m_nextTokenHasBeenSet = true;
185 m_nextToken = std::forward<NextTokenT>(value);
186 }
187 template <typename NextTokenT = Aws::String>
188 ListSlotsRequest& WithNextToken(NextTokenT&& value) {
189 SetNextToken(std::forward<NextTokenT>(value));
190 return *this;
191 }
193 private:
194 Aws::String m_botId;
195
196 Aws::String m_botVersion;
197
198 Aws::String m_localeId;
199
200 Aws::String m_intentId;
201
202 SlotSortBy m_sortBy;
203
204 Aws::Vector<SlotFilter> m_filters;
205
206 int m_maxResults{0};
207
208 Aws::String m_nextToken;
209 bool m_botIdHasBeenSet = false;
210 bool m_botVersionHasBeenSet = false;
211 bool m_localeIdHasBeenSet = false;
212 bool m_intentIdHasBeenSet = false;
213 bool m_sortByHasBeenSet = false;
214 bool m_filtersHasBeenSet = false;
215 bool m_maxResultsHasBeenSet = false;
216 bool m_nextTokenHasBeenSet = false;
217};
218
219} // namespace Model
220} // namespace LexModelsV2
221} // namespace Aws
virtual const char * GetServiceRequestName() const override
ListSlotsRequest & WithBotId(BotIdT &&value)
const Aws::String & GetIntentId() const
AWS_LEXMODELSV2_API Aws::String SerializePayload() const override
ListSlotsRequest & WithFilters(FiltersT &&value)
ListSlotsRequest & WithNextToken(NextTokenT &&value)
ListSlotsRequest & WithMaxResults(int value)
ListSlotsRequest & WithIntentId(IntentIdT &&value)
ListSlotsRequest & WithSortBy(SortByT &&value)
const Aws::String & GetLocaleId() const
const Aws::Vector< SlotFilter > & GetFilters() const
AWS_LEXMODELSV2_API ListSlotsRequest()=default
const Aws::String & GetBotVersion() const
ListSlotsRequest & WithLocaleId(LocaleIdT &&value)
ListSlotsRequest & WithBotVersion(BotVersionT &&value)
ListSlotsRequest & AddFilters(FiltersT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector