AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetSortBy(const BotSortBy& value) { m_sortByHasBeenSet = true; m_sortBy = value; }
46 inline void SetSortBy(BotSortBy&& value) { m_sortByHasBeenSet = true; m_sortBy = std::move(value); }
47 inline ListBotsRequest& WithSortBy(const BotSortBy& value) { SetSortBy(value); return *this;}
48 inline ListBotsRequest& WithSortBy(BotSortBy&& value) { SetSortBy(std::move(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 inline void SetFilters(const Aws::Vector<BotFilter>& value) { m_filtersHasBeenSet = true; m_filters = value; }
60 inline void SetFilters(Aws::Vector<BotFilter>&& value) { m_filtersHasBeenSet = true; m_filters = std::move(value); }
61 inline ListBotsRequest& WithFilters(const Aws::Vector<BotFilter>& value) { SetFilters(value); return *this;}
62 inline ListBotsRequest& WithFilters(Aws::Vector<BotFilter>&& value) { SetFilters(std::move(value)); return *this;}
63 inline ListBotsRequest& AddFilters(const BotFilter& value) { m_filtersHasBeenSet = true; m_filters.push_back(value); return *this; }
64 inline ListBotsRequest& AddFilters(BotFilter&& value) { m_filtersHasBeenSet = true; m_filters.push_back(std::move(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 inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
92 inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
93 inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
94 inline ListBotsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
95 inline ListBotsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
96 inline ListBotsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
98 private:
99
100 BotSortBy m_sortBy;
101 bool m_sortByHasBeenSet = false;
102
103 Aws::Vector<BotFilter> m_filters;
104 bool m_filtersHasBeenSet = false;
105
106 int m_maxResults;
107 bool m_maxResultsHasBeenSet = false;
108
109 Aws::String m_nextToken;
110 bool m_nextTokenHasBeenSet = false;
111 };
112
113} // namespace Model
114} // namespace LexModelsV2
115} // namespace Aws
ListBotsRequest & WithNextToken(const Aws::String &value)
ListBotsRequest & WithMaxResults(int value)
ListBotsRequest & WithFilters(Aws::Vector< BotFilter > &&value)
const Aws::Vector< BotFilter > & GetFilters() const
ListBotsRequest & WithNextToken(const char *value)
AWS_LEXMODELSV2_API Aws::String SerializePayload() const override
ListBotsRequest & WithNextToken(Aws::String &&value)
const Aws::String & GetNextToken() const
ListBotsRequest & AddFilters(const BotFilter &value)
void SetFilters(Aws::Vector< BotFilter > &&value)
virtual const char * GetServiceRequestName() const override
void SetFilters(const Aws::Vector< BotFilter > &value)
ListBotsRequest & WithSortBy(BotSortBy &&value)
ListBotsRequest & AddFilters(BotFilter &&value)
void SetNextToken(const Aws::String &value)
ListBotsRequest & WithFilters(const Aws::Vector< BotFilter > &value)
ListBotsRequest & WithSortBy(const BotSortBy &value)
void SetSortBy(const BotSortBy &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector