AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
ListBotLocalesRequest.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/BotLocaleSortBy.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/lexv2-models/model/BotLocaleFilter.h>
13#include <utility>
14
15namespace Aws
16{
17namespace LexModelsV2
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_LEXMODELSV2_API ListBotLocalesRequest() = 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 "ListBotLocales"; }
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 ListBotLocalesRequest& 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 ListBotLocalesRequest& WithBotVersion(BotVersionT&& value) { SetBotVersion(std::forward<BotVersionT>(value)); return *this;}
61
63
67 inline const BotLocaleSortBy& GetSortBy() const { return m_sortBy; }
68 inline bool SortByHasBeenSet() const { return m_sortByHasBeenSet; }
69 template<typename SortByT = BotLocaleSortBy>
70 void SetSortBy(SortByT&& value) { m_sortByHasBeenSet = true; m_sortBy = std::forward<SortByT>(value); }
71 template<typename SortByT = BotLocaleSortBy>
72 ListBotLocalesRequest& WithSortBy(SortByT&& value) { SetSortBy(std::forward<SortByT>(value)); return *this;}
74
76
81 inline const Aws::Vector<BotLocaleFilter>& GetFilters() const { return m_filters; }
82 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
83 template<typename FiltersT = Aws::Vector<BotLocaleFilter>>
84 void SetFilters(FiltersT&& value) { m_filtersHasBeenSet = true; m_filters = std::forward<FiltersT>(value); }
85 template<typename FiltersT = Aws::Vector<BotLocaleFilter>>
86 ListBotLocalesRequest& WithFilters(FiltersT&& value) { SetFilters(std::forward<FiltersT>(value)); return *this;}
87 template<typename FiltersT = BotLocaleFilter>
88 ListBotLocalesRequest& 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 ListBotLocalesRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
102
104
110 inline const Aws::String& GetNextToken() const { return m_nextToken; }
111 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
112 template<typename NextTokenT = Aws::String>
113 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
114 template<typename NextTokenT = Aws::String>
115 ListBotLocalesRequest& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
117 private:
118
119 Aws::String m_botId;
120 bool m_botIdHasBeenSet = false;
121
122 Aws::String m_botVersion;
123 bool m_botVersionHasBeenSet = false;
124
125 BotLocaleSortBy m_sortBy;
126 bool m_sortByHasBeenSet = false;
127
129 bool m_filtersHasBeenSet = false;
130
131 int m_maxResults{0};
132 bool m_maxResultsHasBeenSet = false;
133
134 Aws::String m_nextToken;
135 bool m_nextTokenHasBeenSet = false;
136 };
137
138} // namespace Model
139} // namespace LexModelsV2
140} // namespace Aws
virtual const char * GetServiceRequestName() const override
ListBotLocalesRequest & AddFilters(FiltersT &&value)
ListBotLocalesRequest & WithBotVersion(BotVersionT &&value)
AWS_LEXMODELSV2_API Aws::String SerializePayload() const override
const Aws::Vector< BotLocaleFilter > & GetFilters() const
ListBotLocalesRequest & WithSortBy(SortByT &&value)
ListBotLocalesRequest & WithNextToken(NextTokenT &&value)
AWS_LEXMODELSV2_API ListBotLocalesRequest()=default
ListBotLocalesRequest & WithBotId(BotIdT &&value)
ListBotLocalesRequest & WithMaxResults(int value)
ListBotLocalesRequest & WithFilters(FiltersT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector