AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetBotId(const Aws::String& value) { m_botIdHasBeenSet = true; m_botId = value; }
45 inline void SetBotId(Aws::String&& value) { m_botIdHasBeenSet = true; m_botId = std::move(value); }
46 inline void SetBotId(const char* value) { m_botIdHasBeenSet = true; m_botId.assign(value); }
47 inline ListBotLocalesRequest& WithBotId(const Aws::String& value) { SetBotId(value); return *this;}
48 inline ListBotLocalesRequest& WithBotId(Aws::String&& value) { SetBotId(std::move(value)); return *this;}
49 inline ListBotLocalesRequest& WithBotId(const char* value) { SetBotId(value); return *this;}
51
53
56 inline const Aws::String& GetBotVersion() const{ return m_botVersion; }
57 inline bool BotVersionHasBeenSet() const { return m_botVersionHasBeenSet; }
58 inline void SetBotVersion(const Aws::String& value) { m_botVersionHasBeenSet = true; m_botVersion = value; }
59 inline void SetBotVersion(Aws::String&& value) { m_botVersionHasBeenSet = true; m_botVersion = std::move(value); }
60 inline void SetBotVersion(const char* value) { m_botVersionHasBeenSet = true; m_botVersion.assign(value); }
61 inline ListBotLocalesRequest& WithBotVersion(const Aws::String& value) { SetBotVersion(value); return *this;}
62 inline ListBotLocalesRequest& WithBotVersion(Aws::String&& value) { SetBotVersion(std::move(value)); return *this;}
63 inline ListBotLocalesRequest& WithBotVersion(const char* value) { SetBotVersion(value); return *this;}
65
67
71 inline const BotLocaleSortBy& GetSortBy() const{ return m_sortBy; }
72 inline bool SortByHasBeenSet() const { return m_sortByHasBeenSet; }
73 inline void SetSortBy(const BotLocaleSortBy& value) { m_sortByHasBeenSet = true; m_sortBy = value; }
74 inline void SetSortBy(BotLocaleSortBy&& value) { m_sortByHasBeenSet = true; m_sortBy = std::move(value); }
75 inline ListBotLocalesRequest& WithSortBy(const BotLocaleSortBy& value) { SetSortBy(value); return *this;}
76 inline ListBotLocalesRequest& WithSortBy(BotLocaleSortBy&& value) { SetSortBy(std::move(value)); return *this;}
78
80
85 inline const Aws::Vector<BotLocaleFilter>& GetFilters() const{ return m_filters; }
86 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
87 inline void SetFilters(const Aws::Vector<BotLocaleFilter>& value) { m_filtersHasBeenSet = true; m_filters = value; }
88 inline void SetFilters(Aws::Vector<BotLocaleFilter>&& value) { m_filtersHasBeenSet = true; m_filters = std::move(value); }
89 inline ListBotLocalesRequest& WithFilters(const Aws::Vector<BotLocaleFilter>& value) { SetFilters(value); return *this;}
90 inline ListBotLocalesRequest& WithFilters(Aws::Vector<BotLocaleFilter>&& value) { SetFilters(std::move(value)); return *this;}
91 inline ListBotLocalesRequest& AddFilters(const BotLocaleFilter& value) { m_filtersHasBeenSet = true; m_filters.push_back(value); return *this; }
92 inline ListBotLocalesRequest& AddFilters(BotLocaleFilter&& value) { m_filtersHasBeenSet = true; m_filters.push_back(std::move(value)); return *this; }
94
96
101 inline int GetMaxResults() const{ return m_maxResults; }
102 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
103 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
104 inline ListBotLocalesRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
106
108
114 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
115 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
116 inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
117 inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
118 inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
119 inline ListBotLocalesRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
120 inline ListBotLocalesRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
121 inline ListBotLocalesRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
123 private:
124
125 Aws::String m_botId;
126 bool m_botIdHasBeenSet = false;
127
128 Aws::String m_botVersion;
129 bool m_botVersionHasBeenSet = false;
130
131 BotLocaleSortBy m_sortBy;
132 bool m_sortByHasBeenSet = false;
133
135 bool m_filtersHasBeenSet = false;
136
137 int m_maxResults;
138 bool m_maxResultsHasBeenSet = false;
139
140 Aws::String m_nextToken;
141 bool m_nextTokenHasBeenSet = false;
142 };
143
144} // namespace Model
145} // namespace LexModelsV2
146} // namespace Aws
virtual const char * GetServiceRequestName() const override
ListBotLocalesRequest & AddFilters(const BotLocaleFilter &value)
ListBotLocalesRequest & WithFilters(Aws::Vector< BotLocaleFilter > &&value)
ListBotLocalesRequest & AddFilters(BotLocaleFilter &&value)
ListBotLocalesRequest & WithBotId(const Aws::String &value)
ListBotLocalesRequest & WithNextToken(const char *value)
AWS_LEXMODELSV2_API Aws::String SerializePayload() const override
const Aws::Vector< BotLocaleFilter > & GetFilters() const
ListBotLocalesRequest & WithFilters(const Aws::Vector< BotLocaleFilter > &value)
ListBotLocalesRequest & WithBotVersion(const char *value)
void SetFilters(const Aws::Vector< BotLocaleFilter > &value)
ListBotLocalesRequest & WithBotId(Aws::String &&value)
ListBotLocalesRequest & WithBotVersion(Aws::String &&value)
ListBotLocalesRequest & WithBotVersion(const Aws::String &value)
ListBotLocalesRequest & WithSortBy(const BotLocaleSortBy &value)
ListBotLocalesRequest & WithBotId(const char *value)
ListBotLocalesRequest & WithNextToken(const Aws::String &value)
ListBotLocalesRequest & WithSortBy(BotLocaleSortBy &&value)
ListBotLocalesRequest & WithMaxResults(int value)
void SetFilters(Aws::Vector< BotLocaleFilter > &&value)
ListBotLocalesRequest & WithNextToken(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector