AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
ListBotsRequest.h
1
6#pragma once
7#include <aws/lexv2-models/LexModelsV2_EXPORTS.h>
8#include <aws/lexv2-models/LexModelsV2Request.h>
9#include <aws/lexv2-models/model/BotSortBy.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/lexv2-models/model/BotFilter.h>
13#include <utility>
14
15namespace Aws
16{
17namespace LexModelsV2
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_LEXMODELSV2_API ListBotsRequest() = 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 "ListBots"; }
34
35 AWS_LEXMODELSV2_API Aws::String SerializePayload() const override;
36
37
39
43 inline const BotSortBy& GetSortBy() const { return m_sortBy; }
44 inline bool SortByHasBeenSet() const { return m_sortByHasBeenSet; }
45 template<typename SortByT = BotSortBy>
46 void SetSortBy(SortByT&& value) { m_sortByHasBeenSet = true; m_sortBy = std::forward<SortByT>(value); }
47 template<typename SortByT = BotSortBy>
48 ListBotsRequest& WithSortBy(SortByT&& value) { SetSortBy(std::forward<SortByT>(value)); return *this;}
50
52
57 inline const Aws::Vector<BotFilter>& GetFilters() const { return m_filters; }
58 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
59 template<typename FiltersT = Aws::Vector<BotFilter>>
60 void SetFilters(FiltersT&& value) { m_filtersHasBeenSet = true; m_filters = std::forward<FiltersT>(value); }
61 template<typename FiltersT = Aws::Vector<BotFilter>>
62 ListBotsRequest& WithFilters(FiltersT&& value) { SetFilters(std::forward<FiltersT>(value)); return *this;}
63 template<typename FiltersT = BotFilter>
64 ListBotsRequest& AddFilters(FiltersT&& value) { m_filtersHasBeenSet = true; m_filters.emplace_back(std::forward<FiltersT>(value)); return *this; }
66
68
73 inline int GetMaxResults() const { return m_maxResults; }
74 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
75 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
76 inline ListBotsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
78
80
89 inline const Aws::String& GetNextToken() const { return m_nextToken; }
90 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
91 template<typename NextTokenT = Aws::String>
92 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
93 template<typename NextTokenT = Aws::String>
94 ListBotsRequest& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
96 private:
97
98 BotSortBy m_sortBy;
99 bool m_sortByHasBeenSet = false;
100
101 Aws::Vector<BotFilter> m_filters;
102 bool m_filtersHasBeenSet = false;
103
104 int m_maxResults{0};
105 bool m_maxResultsHasBeenSet = false;
106
107 Aws::String m_nextToken;
108 bool m_nextTokenHasBeenSet = false;
109 };
110
111} // namespace Model
112} // namespace LexModelsV2
113} // 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