AWS SDK for C++  1.9.44
AWS SDK for C++
SearchUsersRequest.h
Go to the documentation of this file.
1 
6 #pragma once
13 #include <utility>
14 
15 namespace Aws
16 {
17 namespace AlexaForBusiness
18 {
19 namespace Model
20 {
21 
25  {
26  public:
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 "SearchUsers"; }
34 
35  Aws::String SerializePayload() const override;
36 
38 
39 
46  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
47 
54  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
55 
62  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
63 
70  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
71 
78  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
79 
86  inline SearchUsersRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
87 
94  inline SearchUsersRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
95 
102  inline SearchUsersRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
103 
104 
110  inline int GetMaxResults() const{ return m_maxResults; }
111 
117  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
118 
124  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
125 
131  inline SearchUsersRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
132 
133 
138  inline const Aws::Vector<Filter>& GetFilters() const{ return m_filters; }
139 
144  inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
145 
150  inline void SetFilters(const Aws::Vector<Filter>& value) { m_filtersHasBeenSet = true; m_filters = value; }
151 
156  inline void SetFilters(Aws::Vector<Filter>&& value) { m_filtersHasBeenSet = true; m_filters = std::move(value); }
157 
162  inline SearchUsersRequest& WithFilters(const Aws::Vector<Filter>& value) { SetFilters(value); return *this;}
163 
168  inline SearchUsersRequest& WithFilters(Aws::Vector<Filter>&& value) { SetFilters(std::move(value)); return *this;}
169 
174  inline SearchUsersRequest& AddFilters(const Filter& value) { m_filtersHasBeenSet = true; m_filters.push_back(value); return *this; }
175 
180  inline SearchUsersRequest& AddFilters(Filter&& value) { m_filtersHasBeenSet = true; m_filters.push_back(std::move(value)); return *this; }
181 
182 
188  inline const Aws::Vector<Sort>& GetSortCriteria() const{ return m_sortCriteria; }
189 
195  inline bool SortCriteriaHasBeenSet() const { return m_sortCriteriaHasBeenSet; }
196 
202  inline void SetSortCriteria(const Aws::Vector<Sort>& value) { m_sortCriteriaHasBeenSet = true; m_sortCriteria = value; }
203 
209  inline void SetSortCriteria(Aws::Vector<Sort>&& value) { m_sortCriteriaHasBeenSet = true; m_sortCriteria = std::move(value); }
210 
216  inline SearchUsersRequest& WithSortCriteria(const Aws::Vector<Sort>& value) { SetSortCriteria(value); return *this;}
217 
223  inline SearchUsersRequest& WithSortCriteria(Aws::Vector<Sort>&& value) { SetSortCriteria(std::move(value)); return *this;}
224 
230  inline SearchUsersRequest& AddSortCriteria(const Sort& value) { m_sortCriteriaHasBeenSet = true; m_sortCriteria.push_back(value); return *this; }
231 
237  inline SearchUsersRequest& AddSortCriteria(Sort&& value) { m_sortCriteriaHasBeenSet = true; m_sortCriteria.push_back(std::move(value)); return *this; }
238 
239  private:
240 
241  Aws::String m_nextToken;
242  bool m_nextTokenHasBeenSet;
243 
244  int m_maxResults;
245  bool m_maxResultsHasBeenSet;
246 
247  Aws::Vector<Filter> m_filters;
248  bool m_filtersHasBeenSet;
249 
250  Aws::Vector<Sort> m_sortCriteria;
251  bool m_sortCriteriaHasBeenSet;
252  };
253 
254 } // namespace Model
255 } // namespace AlexaForBusiness
256 } // namespace Aws
Aws::AlexaForBusiness::Model::SearchUsersRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: SearchUsersRequest.h:54
Aws::AlexaForBusiness::Model::SearchUsersRequest::SortCriteriaHasBeenSet
bool SortCriteriaHasBeenSet() const
Definition: SearchUsersRequest.h:195
Aws::AlexaForBusiness::Model::SearchUsersRequest::SetFilters
void SetFilters(const Aws::Vector< Filter > &value)
Definition: SearchUsersRequest.h:150
Aws::AlexaForBusiness::Model::SearchUsersRequest::AddFilters
SearchUsersRequest & AddFilters(const Filter &value)
Definition: SearchUsersRequest.h:174
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::AlexaForBusiness::Model::SearchUsersRequest::AddSortCriteria
SearchUsersRequest & AddSortCriteria(const Sort &value)
Definition: SearchUsersRequest.h:230
Aws::AlexaForBusiness::Model::SearchUsersRequest::SetMaxResults
void SetMaxResults(int value)
Definition: SearchUsersRequest.h:124
Aws::AlexaForBusiness::Model::SearchUsersRequest::AddSortCriteria
SearchUsersRequest & AddSortCriteria(Sort &&value)
Definition: SearchUsersRequest.h:237
Aws::AlexaForBusiness::Model::SearchUsersRequest::FiltersHasBeenSet
bool FiltersHasBeenSet() const
Definition: SearchUsersRequest.h:144
Aws::AlexaForBusiness::Model::SearchUsersRequest::AddFilters
SearchUsersRequest & AddFilters(Filter &&value)
Definition: SearchUsersRequest.h:180
Aws::AlexaForBusiness::Model::SearchUsersRequest::WithFilters
SearchUsersRequest & WithFilters(const Aws::Vector< Filter > &value)
Definition: SearchUsersRequest.h:162
Aws::AlexaForBusiness::Model::Filter
Definition: Filter.h:35
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSVector.h
Aws::AlexaForBusiness::Model::SearchUsersRequest::WithNextToken
SearchUsersRequest & WithNextToken(const Aws::String &value)
Definition: SearchUsersRequest.h:86
Aws::AlexaForBusiness::Model::SearchUsersRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::AlexaForBusiness::Model::SearchUsersRequest::MaxResultsHasBeenSet
bool MaxResultsHasBeenSet() const
Definition: SearchUsersRequest.h:117
Sort.h
Aws::AlexaForBusiness::Model::SearchUsersRequest::SetFilters
void SetFilters(Aws::Vector< Filter > &&value)
Definition: SearchUsersRequest.h:156
Aws::AlexaForBusiness::Model::SearchUsersRequest::WithMaxResults
SearchUsersRequest & WithMaxResults(int value)
Definition: SearchUsersRequest.h:131
Aws::AlexaForBusiness::Model::SearchUsersRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Filter.h
Aws::AlexaForBusiness::Model::SearchUsersRequest::WithNextToken
SearchUsersRequest & WithNextToken(const char *value)
Definition: SearchUsersRequest.h:102
Aws::AlexaForBusiness::Model::SearchUsersRequest::WithFilters
SearchUsersRequest & WithFilters(Aws::Vector< Filter > &&value)
Definition: SearchUsersRequest.h:168
AWS_ALEXAFORBUSINESS_API
#define AWS_ALEXAFORBUSINESS_API
Definition: AlexaForBusiness_EXPORTS.h:28
Aws::AlexaForBusiness::Model::SearchUsersRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: SearchUsersRequest.h:62
Aws::AlexaForBusiness::Model::SearchUsersRequest::WithSortCriteria
SearchUsersRequest & WithSortCriteria(Aws::Vector< Sort > &&value)
Definition: SearchUsersRequest.h:223
Aws::AlexaForBusiness::Model::SearchUsersRequest::GetMaxResults
int GetMaxResults() const
Definition: SearchUsersRequest.h:110
Aws::AlexaForBusiness::Model::SearchUsersRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: SearchUsersRequest.h:46
AWSString.h
Aws::AlexaForBusiness::Model::SearchUsersRequest::SetNextToken
void SetNextToken(const char *value)
Definition: SearchUsersRequest.h:78
Aws::AlexaForBusiness::Model::SearchUsersRequest::SetSortCriteria
void SetSortCriteria(Aws::Vector< Sort > &&value)
Definition: SearchUsersRequest.h:209
AlexaForBusiness_EXPORTS.h
Aws::AlexaForBusiness::Model::SearchUsersRequest::WithSortCriteria
SearchUsersRequest & WithSortCriteria(const Aws::Vector< Sort > &value)
Definition: SearchUsersRequest.h:216
Aws::AlexaForBusiness::Model::SearchUsersRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: SearchUsersRequest.h:33
Aws::AlexaForBusiness::Model::SearchUsersRequest::GetFilters
const Aws::Vector< Filter > & GetFilters() const
Definition: SearchUsersRequest.h:138
Aws
Definition: AccessManagementClient.h:15
Aws::AlexaForBusiness::AlexaForBusinessRequest
Definition: AlexaForBusinessRequest.h:17
Aws::AlexaForBusiness::Model::SearchUsersRequest::WithNextToken
SearchUsersRequest & WithNextToken(Aws::String &&value)
Definition: SearchUsersRequest.h:94
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::AlexaForBusiness::Model::SearchUsersRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: SearchUsersRequest.h:70
Aws::AlexaForBusiness::Model::SearchUsersRequest::GetSortCriteria
const Aws::Vector< Sort > & GetSortCriteria() const
Definition: SearchUsersRequest.h:188
Aws::AlexaForBusiness::Model::Sort
Definition: Sort.h:33
Aws::AlexaForBusiness::Model::SearchUsersRequest::SetSortCriteria
void SetSortCriteria(const Aws::Vector< Sort > &value)
Definition: SearchUsersRequest.h:202
AlexaForBusinessRequest.h
Aws::AlexaForBusiness::Model::SearchUsersRequest
Definition: SearchUsersRequest.h:25
Aws::AlexaForBusiness::Model::SearchUsersRequest::SearchUsersRequest
SearchUsersRequest()