AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
ListImportsRequest.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/ImportSortBy.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/lexv2-models/model/ImportFilter.h>
13#include <utility>
14
15namespace Aws
16{
17namespace LexModelsV2
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_LEXMODELSV2_API ListImportsRequest() = 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 "ListImports"; }
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 ListImportsRequest& 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 ListImportsRequest& WithBotVersion(BotVersionT&& value) { SetBotVersion(std::forward<BotVersionT>(value)); return *this;}
61
63
67 inline const ImportSortBy& GetSortBy() const { return m_sortBy; }
68 inline bool SortByHasBeenSet() const { return m_sortByHasBeenSet; }
69 template<typename SortByT = ImportSortBy>
70 void SetSortBy(SortByT&& value) { m_sortByHasBeenSet = true; m_sortBy = std::forward<SortByT>(value); }
71 template<typename SortByT = ImportSortBy>
72 ListImportsRequest& WithSortBy(SortByT&& value) { SetSortBy(std::forward<SortByT>(value)); return *this;}
74
76
81 inline const Aws::Vector<ImportFilter>& GetFilters() const { return m_filters; }
82 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
83 template<typename FiltersT = Aws::Vector<ImportFilter>>
84 void SetFilters(FiltersT&& value) { m_filtersHasBeenSet = true; m_filters = std::forward<FiltersT>(value); }
85 template<typename FiltersT = Aws::Vector<ImportFilter>>
86 ListImportsRequest& WithFilters(FiltersT&& value) { SetFilters(std::forward<FiltersT>(value)); return *this;}
87 template<typename FiltersT = ImportFilter>
88 ListImportsRequest& AddFilters(FiltersT&& value) { m_filtersHasBeenSet = true; m_filters.emplace_back(std::forward<FiltersT>(value)); return *this; }
90
92
97 inline int GetMaxResults() const { return m_maxResults; }
98 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
99 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
100 inline ListImportsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
102
104
113 inline const Aws::String& GetNextToken() const { return m_nextToken; }
114 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
115 template<typename NextTokenT = Aws::String>
116 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
117 template<typename NextTokenT = Aws::String>
118 ListImportsRequest& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
120
122
127 inline const Aws::String& GetLocaleId() const { return m_localeId; }
128 inline bool LocaleIdHasBeenSet() const { return m_localeIdHasBeenSet; }
129 template<typename LocaleIdT = Aws::String>
130 void SetLocaleId(LocaleIdT&& value) { m_localeIdHasBeenSet = true; m_localeId = std::forward<LocaleIdT>(value); }
131 template<typename LocaleIdT = Aws::String>
132 ListImportsRequest& WithLocaleId(LocaleIdT&& value) { SetLocaleId(std::forward<LocaleIdT>(value)); return *this;}
134 private:
135
136 Aws::String m_botId;
137 bool m_botIdHasBeenSet = false;
138
139 Aws::String m_botVersion;
140 bool m_botVersionHasBeenSet = false;
141
142 ImportSortBy m_sortBy;
143 bool m_sortByHasBeenSet = false;
144
146 bool m_filtersHasBeenSet = false;
147
148 int m_maxResults{0};
149 bool m_maxResultsHasBeenSet = false;
150
151 Aws::String m_nextToken;
152 bool m_nextTokenHasBeenSet = false;
153
154 Aws::String m_localeId;
155 bool m_localeIdHasBeenSet = false;
156 };
157
158} // namespace Model
159} // namespace LexModelsV2
160} // namespace Aws
ListImportsRequest & WithBotId(BotIdT &&value)
ListImportsRequest & AddFilters(FiltersT &&value)
ListImportsRequest & WithNextToken(NextTokenT &&value)
AWS_LEXMODELSV2_API ListImportsRequest()=default
ListImportsRequest & WithLocaleId(LocaleIdT &&value)
const Aws::Vector< ImportFilter > & GetFilters() const
ListImportsRequest & WithFilters(FiltersT &&value)
ListImportsRequest & WithMaxResults(int value)
ListImportsRequest & WithSortBy(SortByT &&value)
virtual const char * GetServiceRequestName() const override
ListImportsRequest & WithBotVersion(BotVersionT &&value)
AWS_LEXMODELSV2_API Aws::String SerializePayload() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector