AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetBotId(const Aws::String& value) { m_botIdHasBeenSet = true; m_botId = value; }
45 inline void SetBotId(Aws::String&& value) { m_botIdHasBeenSet = true; m_botId = std::move(value); }
46 inline void SetBotId(const char* value) { m_botIdHasBeenSet = true; m_botId.assign(value); }
47 inline ListIntentsRequest& WithBotId(const Aws::String& value) { SetBotId(value); return *this;}
48 inline ListIntentsRequest& WithBotId(Aws::String&& value) { SetBotId(std::move(value)); return *this;}
49 inline ListIntentsRequest& WithBotId(const char* value) { SetBotId(value); return *this;}
51
53
56 inline const Aws::String& GetBotVersion() const{ return m_botVersion; }
57 inline bool BotVersionHasBeenSet() const { return m_botVersionHasBeenSet; }
58 inline void SetBotVersion(const Aws::String& value) { m_botVersionHasBeenSet = true; m_botVersion = value; }
59 inline void SetBotVersion(Aws::String&& value) { m_botVersionHasBeenSet = true; m_botVersion = std::move(value); }
60 inline void SetBotVersion(const char* value) { m_botVersionHasBeenSet = true; m_botVersion.assign(value); }
61 inline ListIntentsRequest& WithBotVersion(const Aws::String& value) { SetBotVersion(value); return *this;}
62 inline ListIntentsRequest& WithBotVersion(Aws::String&& value) { SetBotVersion(std::move(value)); return *this;}
63 inline ListIntentsRequest& WithBotVersion(const char* value) { SetBotVersion(value); return *this;}
65
67
73 inline const Aws::String& GetLocaleId() const{ return m_localeId; }
74 inline bool LocaleIdHasBeenSet() const { return m_localeIdHasBeenSet; }
75 inline void SetLocaleId(const Aws::String& value) { m_localeIdHasBeenSet = true; m_localeId = value; }
76 inline void SetLocaleId(Aws::String&& value) { m_localeIdHasBeenSet = true; m_localeId = std::move(value); }
77 inline void SetLocaleId(const char* value) { m_localeIdHasBeenSet = true; m_localeId.assign(value); }
78 inline ListIntentsRequest& WithLocaleId(const Aws::String& value) { SetLocaleId(value); return *this;}
79 inline ListIntentsRequest& WithLocaleId(Aws::String&& value) { SetLocaleId(std::move(value)); return *this;}
80 inline ListIntentsRequest& WithLocaleId(const char* value) { SetLocaleId(value); return *this;}
82
84
89 inline const IntentSortBy& GetSortBy() const{ return m_sortBy; }
90 inline bool SortByHasBeenSet() const { return m_sortByHasBeenSet; }
91 inline void SetSortBy(const IntentSortBy& value) { m_sortByHasBeenSet = true; m_sortBy = value; }
92 inline void SetSortBy(IntentSortBy&& value) { m_sortByHasBeenSet = true; m_sortBy = std::move(value); }
93 inline ListIntentsRequest& WithSortBy(const IntentSortBy& value) { SetSortBy(value); return *this;}
94 inline ListIntentsRequest& WithSortBy(IntentSortBy&& value) { SetSortBy(std::move(value)); return *this;}
96
98
103 inline const Aws::Vector<IntentFilter>& GetFilters() const{ return m_filters; }
104 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
105 inline void SetFilters(const Aws::Vector<IntentFilter>& value) { m_filtersHasBeenSet = true; m_filters = value; }
106 inline void SetFilters(Aws::Vector<IntentFilter>&& value) { m_filtersHasBeenSet = true; m_filters = std::move(value); }
107 inline ListIntentsRequest& WithFilters(const Aws::Vector<IntentFilter>& value) { SetFilters(value); return *this;}
108 inline ListIntentsRequest& WithFilters(Aws::Vector<IntentFilter>&& value) { SetFilters(std::move(value)); return *this;}
109 inline ListIntentsRequest& AddFilters(const IntentFilter& value) { m_filtersHasBeenSet = true; m_filters.push_back(value); return *this; }
110 inline ListIntentsRequest& AddFilters(IntentFilter&& value) { m_filtersHasBeenSet = true; m_filters.push_back(std::move(value)); return *this; }
112
114
119 inline int GetMaxResults() const{ return m_maxResults; }
120 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
121 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
122 inline ListIntentsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
124
126
135 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
136 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
137 inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
138 inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
139 inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
140 inline ListIntentsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
141 inline ListIntentsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
142 inline ListIntentsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
144 private:
145
146 Aws::String m_botId;
147 bool m_botIdHasBeenSet = false;
148
149 Aws::String m_botVersion;
150 bool m_botVersionHasBeenSet = false;
151
152 Aws::String m_localeId;
153 bool m_localeIdHasBeenSet = false;
154
155 IntentSortBy m_sortBy;
156 bool m_sortByHasBeenSet = false;
157
159 bool m_filtersHasBeenSet = false;
160
161 int m_maxResults;
162 bool m_maxResultsHasBeenSet = false;
163
164 Aws::String m_nextToken;
165 bool m_nextTokenHasBeenSet = false;
166 };
167
168} // namespace Model
169} // namespace LexModelsV2
170} // namespace Aws
ListIntentsRequest & WithBotId(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
ListIntentsRequest & WithNextToken(Aws::String &&value)
ListIntentsRequest & WithFilters(Aws::Vector< IntentFilter > &&value)
void SetSortBy(const IntentSortBy &value)
ListIntentsRequest & WithBotVersion(const char *value)
AWS_LEXMODELSV2_API Aws::String SerializePayload() const override
void SetFilters(Aws::Vector< IntentFilter > &&value)
ListIntentsRequest & WithSortBy(const IntentSortBy &value)
ListIntentsRequest & WithBotId(const char *value)
ListIntentsRequest & WithFilters(const Aws::Vector< IntentFilter > &value)
ListIntentsRequest & WithBotVersion(const Aws::String &value)
void SetLocaleId(const Aws::String &value)
const Aws::Vector< IntentFilter > & GetFilters() const
void SetNextToken(const Aws::String &value)
ListIntentsRequest & WithMaxResults(int value)
void SetFilters(const Aws::Vector< IntentFilter > &value)
ListIntentsRequest & WithNextToken(const char *value)
ListIntentsRequest & WithLocaleId(const char *value)
ListIntentsRequest & WithBotId(Aws::String &&value)
ListIntentsRequest & AddFilters(IntentFilter &&value)
ListIntentsRequest & AddFilters(const IntentFilter &value)
ListIntentsRequest & WithSortBy(IntentSortBy &&value)
ListIntentsRequest & WithBotVersion(Aws::String &&value)
ListIntentsRequest & WithNextToken(const Aws::String &value)
ListIntentsRequest & WithLocaleId(const Aws::String &value)
void SetBotVersion(const Aws::String &value)
ListIntentsRequest & WithLocaleId(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector