AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
ListSlotsRequest.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/lexv2-models/model/SlotSortBy.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/lexv2-models/model/SlotFilter.h>
13#include <utility>
14
15namespace Aws
16{
17namespace LexModelsV2
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_LEXMODELSV2_API ListSlotsRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "ListSlots"; }
34
35 AWS_LEXMODELSV2_API Aws::String SerializePayload() const override;
36
37
39
42 inline const Aws::String& GetBotId() const { return m_botId; }
43 inline bool BotIdHasBeenSet() const { return m_botIdHasBeenSet; }
44 template<typename BotIdT = Aws::String>
45 void SetBotId(BotIdT&& value) { m_botIdHasBeenSet = true; m_botId = std::forward<BotIdT>(value); }
46 template<typename BotIdT = Aws::String>
47 ListSlotsRequest& WithBotId(BotIdT&& value) { SetBotId(std::forward<BotIdT>(value)); return *this;}
49
51
54 inline const Aws::String& GetBotVersion() const { return m_botVersion; }
55 inline bool BotVersionHasBeenSet() const { return m_botVersionHasBeenSet; }
56 template<typename BotVersionT = Aws::String>
57 void SetBotVersion(BotVersionT&& value) { m_botVersionHasBeenSet = true; m_botVersion = std::forward<BotVersionT>(value); }
58 template<typename BotVersionT = Aws::String>
59 ListSlotsRequest& WithBotVersion(BotVersionT&& value) { SetBotVersion(std::forward<BotVersionT>(value)); return *this;}
61
63
69 inline const Aws::String& GetLocaleId() const { return m_localeId; }
70 inline bool LocaleIdHasBeenSet() const { return m_localeIdHasBeenSet; }
71 template<typename LocaleIdT = Aws::String>
72 void SetLocaleId(LocaleIdT&& value) { m_localeIdHasBeenSet = true; m_localeId = std::forward<LocaleIdT>(value); }
73 template<typename LocaleIdT = Aws::String>
74 ListSlotsRequest& WithLocaleId(LocaleIdT&& value) { SetLocaleId(std::forward<LocaleIdT>(value)); return *this;}
76
78
81 inline const Aws::String& GetIntentId() const { return m_intentId; }
82 inline bool IntentIdHasBeenSet() const { return m_intentIdHasBeenSet; }
83 template<typename IntentIdT = Aws::String>
84 void SetIntentId(IntentIdT&& value) { m_intentIdHasBeenSet = true; m_intentId = std::forward<IntentIdT>(value); }
85 template<typename IntentIdT = Aws::String>
86 ListSlotsRequest& WithIntentId(IntentIdT&& value) { SetIntentId(std::forward<IntentIdT>(value)); return *this;}
88
90
95 inline const SlotSortBy& GetSortBy() const { return m_sortBy; }
96 inline bool SortByHasBeenSet() const { return m_sortByHasBeenSet; }
97 template<typename SortByT = SlotSortBy>
98 void SetSortBy(SortByT&& value) { m_sortByHasBeenSet = true; m_sortBy = std::forward<SortByT>(value); }
99 template<typename SortByT = SlotSortBy>
100 ListSlotsRequest& WithSortBy(SortByT&& value) { SetSortBy(std::forward<SortByT>(value)); return *this;}
102
104
109 inline const Aws::Vector<SlotFilter>& GetFilters() const { return m_filters; }
110 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
111 template<typename FiltersT = Aws::Vector<SlotFilter>>
112 void SetFilters(FiltersT&& value) { m_filtersHasBeenSet = true; m_filters = std::forward<FiltersT>(value); }
113 template<typename FiltersT = Aws::Vector<SlotFilter>>
114 ListSlotsRequest& WithFilters(FiltersT&& value) { SetFilters(std::forward<FiltersT>(value)); return *this;}
115 template<typename FiltersT = SlotFilter>
116 ListSlotsRequest& AddFilters(FiltersT&& value) { m_filtersHasBeenSet = true; m_filters.emplace_back(std::forward<FiltersT>(value)); return *this; }
118
120
125 inline int GetMaxResults() const { return m_maxResults; }
126 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
127 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
128 inline ListSlotsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
130
132
138 inline const Aws::String& GetNextToken() const { return m_nextToken; }
139 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
140 template<typename NextTokenT = Aws::String>
141 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
142 template<typename NextTokenT = Aws::String>
143 ListSlotsRequest& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
145 private:
146
147 Aws::String m_botId;
148 bool m_botIdHasBeenSet = false;
149
150 Aws::String m_botVersion;
151 bool m_botVersionHasBeenSet = false;
152
153 Aws::String m_localeId;
154 bool m_localeIdHasBeenSet = false;
155
156 Aws::String m_intentId;
157 bool m_intentIdHasBeenSet = false;
158
159 SlotSortBy m_sortBy;
160 bool m_sortByHasBeenSet = false;
161
162 Aws::Vector<SlotFilter> m_filters;
163 bool m_filtersHasBeenSet = false;
164
165 int m_maxResults{0};
166 bool m_maxResultsHasBeenSet = false;
167
168 Aws::String m_nextToken;
169 bool m_nextTokenHasBeenSet = false;
170 };
171
172} // namespace Model
173} // namespace LexModelsV2
174} // 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