AWS SDK for C++

AWS SDK for C++ Version 1.11.745

Loading...
Searching...
No Matches
ListBotsRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/lexv2-models/LexModelsV2Request.h>
10#include <aws/lexv2-models/LexModelsV2_EXPORTS.h>
11#include <aws/lexv2-models/model/BotFilter.h>
12#include <aws/lexv2-models/model/BotSortBy.h>
13
14#include <utility>
15
16namespace Aws {
17namespace LexModelsV2 {
18namespace Model {
19
23 public:
24 AWS_LEXMODELSV2_API ListBotsRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "ListBots"; }
31
32 AWS_LEXMODELSV2_API Aws::String SerializePayload() const override;
33
35
39 inline const BotSortBy& GetSortBy() const { return m_sortBy; }
40 inline bool SortByHasBeenSet() const { return m_sortByHasBeenSet; }
41 template <typename SortByT = BotSortBy>
42 void SetSortBy(SortByT&& value) {
43 m_sortByHasBeenSet = true;
44 m_sortBy = std::forward<SortByT>(value);
45 }
46 template <typename SortByT = BotSortBy>
47 ListBotsRequest& WithSortBy(SortByT&& value) {
48 SetSortBy(std::forward<SortByT>(value));
49 return *this;
50 }
52
54
59 inline const Aws::Vector<BotFilter>& GetFilters() const { return m_filters; }
60 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
61 template <typename FiltersT = Aws::Vector<BotFilter>>
62 void SetFilters(FiltersT&& value) {
63 m_filtersHasBeenSet = true;
64 m_filters = std::forward<FiltersT>(value);
65 }
66 template <typename FiltersT = Aws::Vector<BotFilter>>
67 ListBotsRequest& WithFilters(FiltersT&& value) {
68 SetFilters(std::forward<FiltersT>(value));
69 return *this;
70 }
71 template <typename FiltersT = BotFilter>
72 ListBotsRequest& AddFilters(FiltersT&& value) {
73 m_filtersHasBeenSet = true;
74 m_filters.emplace_back(std::forward<FiltersT>(value));
75 return *this;
76 }
78
80
85 inline int GetMaxResults() const { return m_maxResults; }
86 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
87 inline void SetMaxResults(int value) {
88 m_maxResultsHasBeenSet = true;
89 m_maxResults = value;
90 }
91 inline ListBotsRequest& WithMaxResults(int value) {
92 SetMaxResults(value);
93 return *this;
94 }
96
98
107 inline const Aws::String& GetNextToken() const { return m_nextToken; }
108 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
109 template <typename NextTokenT = Aws::String>
110 void SetNextToken(NextTokenT&& value) {
111 m_nextTokenHasBeenSet = true;
112 m_nextToken = std::forward<NextTokenT>(value);
113 }
114 template <typename NextTokenT = Aws::String>
115 ListBotsRequest& WithNextToken(NextTokenT&& value) {
116 SetNextToken(std::forward<NextTokenT>(value));
117 return *this;
118 }
120 private:
121 BotSortBy m_sortBy;
122
123 Aws::Vector<BotFilter> m_filters;
124
125 int m_maxResults{0};
126
127 Aws::String m_nextToken;
128 bool m_sortByHasBeenSet = false;
129 bool m_filtersHasBeenSet = false;
130 bool m_maxResultsHasBeenSet = false;
131 bool m_nextTokenHasBeenSet = false;
132};
133
134} // namespace Model
135} // namespace LexModelsV2
136} // namespace Aws
ListBotsRequest & WithMaxResults(int value)
const Aws::Vector< BotFilter > & GetFilters() const
AWS_LEXMODELSV2_API Aws::String SerializePayload() const override
ListBotsRequest & WithFilters(FiltersT &&value)
const Aws::String & GetNextToken() const
AWS_LEXMODELSV2_API ListBotsRequest()=default
ListBotsRequest & WithNextToken(NextTokenT &&value)
ListBotsRequest & WithSortBy(SortByT &&value)
virtual const char * GetServiceRequestName() const override
ListBotsRequest & AddFilters(FiltersT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector