AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
ListIntentsRequest.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/IntentSortBy.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/lexv2-models/model/IntentFilter.h>
13#include <utility>
14
15namespace Aws
16{
17namespace LexModelsV2
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_LEXMODELSV2_API ListIntentsRequest() = 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 "ListIntents"; }
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 ListIntentsRequest& 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 ListIntentsRequest& 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 ListIntentsRequest& WithLocaleId(LocaleIdT&& value) { SetLocaleId(std::forward<LocaleIdT>(value)); return *this;}
76
78
83 inline const IntentSortBy& GetSortBy() const { return m_sortBy; }
84 inline bool SortByHasBeenSet() const { return m_sortByHasBeenSet; }
85 template<typename SortByT = IntentSortBy>
86 void SetSortBy(SortByT&& value) { m_sortByHasBeenSet = true; m_sortBy = std::forward<SortByT>(value); }
87 template<typename SortByT = IntentSortBy>
88 ListIntentsRequest& WithSortBy(SortByT&& value) { SetSortBy(std::forward<SortByT>(value)); return *this;}
90
92
97 inline const Aws::Vector<IntentFilter>& GetFilters() const { return m_filters; }
98 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
99 template<typename FiltersT = Aws::Vector<IntentFilter>>
100 void SetFilters(FiltersT&& value) { m_filtersHasBeenSet = true; m_filters = std::forward<FiltersT>(value); }
101 template<typename FiltersT = Aws::Vector<IntentFilter>>
102 ListIntentsRequest& WithFilters(FiltersT&& value) { SetFilters(std::forward<FiltersT>(value)); return *this;}
103 template<typename FiltersT = IntentFilter>
104 ListIntentsRequest& AddFilters(FiltersT&& value) { m_filtersHasBeenSet = true; m_filters.emplace_back(std::forward<FiltersT>(value)); return *this; }
106
108
113 inline int GetMaxResults() const { return m_maxResults; }
114 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
115 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
116 inline ListIntentsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
118
120
129 inline const Aws::String& GetNextToken() const { return m_nextToken; }
130 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
131 template<typename NextTokenT = Aws::String>
132 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
133 template<typename NextTokenT = Aws::String>
134 ListIntentsRequest& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
136 private:
137
138 Aws::String m_botId;
139 bool m_botIdHasBeenSet = false;
140
141 Aws::String m_botVersion;
142 bool m_botVersionHasBeenSet = false;
143
144 Aws::String m_localeId;
145 bool m_localeIdHasBeenSet = false;
146
147 IntentSortBy m_sortBy;
148 bool m_sortByHasBeenSet = false;
149
151 bool m_filtersHasBeenSet = false;
152
153 int m_maxResults{0};
154 bool m_maxResultsHasBeenSet = false;
155
156 Aws::String m_nextToken;
157 bool m_nextTokenHasBeenSet = false;
158 };
159
160} // namespace Model
161} // namespace LexModelsV2
162} // 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