AWS SDK for C++  1.9.46
AWS SDK for C++
SearchDevicesRequest.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 "SearchDevices"; }
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 SearchDevicesRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
87 
94  inline SearchDevicesRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
95 
102  inline SearchDevicesRequest& 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 SearchDevicesRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
132 
133 
140  inline const Aws::Vector<Filter>& GetFilters() const{ return m_filters; }
141 
148  inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
149 
156  inline void SetFilters(const Aws::Vector<Filter>& value) { m_filtersHasBeenSet = true; m_filters = value; }
157 
164  inline void SetFilters(Aws::Vector<Filter>&& value) { m_filtersHasBeenSet = true; m_filters = std::move(value); }
165 
172  inline SearchDevicesRequest& WithFilters(const Aws::Vector<Filter>& value) { SetFilters(value); return *this;}
173 
180  inline SearchDevicesRequest& WithFilters(Aws::Vector<Filter>&& value) { SetFilters(std::move(value)); return *this;}
181 
188  inline SearchDevicesRequest& AddFilters(const Filter& value) { m_filtersHasBeenSet = true; m_filters.push_back(value); return *this; }
189 
196  inline SearchDevicesRequest& AddFilters(Filter&& value) { m_filtersHasBeenSet = true; m_filters.push_back(std::move(value)); return *this; }
197 
198 
205  inline const Aws::Vector<Sort>& GetSortCriteria() const{ return m_sortCriteria; }
206 
213  inline bool SortCriteriaHasBeenSet() const { return m_sortCriteriaHasBeenSet; }
214 
221  inline void SetSortCriteria(const Aws::Vector<Sort>& value) { m_sortCriteriaHasBeenSet = true; m_sortCriteria = value; }
222 
229  inline void SetSortCriteria(Aws::Vector<Sort>&& value) { m_sortCriteriaHasBeenSet = true; m_sortCriteria = std::move(value); }
230 
237  inline SearchDevicesRequest& WithSortCriteria(const Aws::Vector<Sort>& value) { SetSortCriteria(value); return *this;}
238 
245  inline SearchDevicesRequest& WithSortCriteria(Aws::Vector<Sort>&& value) { SetSortCriteria(std::move(value)); return *this;}
246 
253  inline SearchDevicesRequest& AddSortCriteria(const Sort& value) { m_sortCriteriaHasBeenSet = true; m_sortCriteria.push_back(value); return *this; }
254 
261  inline SearchDevicesRequest& AddSortCriteria(Sort&& value) { m_sortCriteriaHasBeenSet = true; m_sortCriteria.push_back(std::move(value)); return *this; }
262 
263  private:
264 
265  Aws::String m_nextToken;
266  bool m_nextTokenHasBeenSet;
267 
268  int m_maxResults;
269  bool m_maxResultsHasBeenSet;
270 
271  Aws::Vector<Filter> m_filters;
272  bool m_filtersHasBeenSet;
273 
274  Aws::Vector<Sort> m_sortCriteria;
275  bool m_sortCriteriaHasBeenSet;
276  };
277 
278 } // namespace Model
279 } // namespace AlexaForBusiness
280 } // namespace Aws
Aws::AlexaForBusiness::Model::SearchDevicesRequest::SortCriteriaHasBeenSet
bool SortCriteriaHasBeenSet() const
Definition: SearchDevicesRequest.h:213
Aws::AlexaForBusiness::Model::SearchDevicesRequest::SetSortCriteria
void SetSortCriteria(Aws::Vector< Sort > &&value)
Definition: SearchDevicesRequest.h:229
Aws::AlexaForBusiness::Model::SearchDevicesRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::AlexaForBusiness::Model::SearchDevicesRequest
Definition: SearchDevicesRequest.h:25
Aws::AlexaForBusiness::Model::SearchDevicesRequest::SetFilters
void SetFilters(const Aws::Vector< Filter > &value)
Definition: SearchDevicesRequest.h:156
Aws::AlexaForBusiness::Model::SearchDevicesRequest::WithFilters
SearchDevicesRequest & WithFilters(const Aws::Vector< Filter > &value)
Definition: SearchDevicesRequest.h:172
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::AlexaForBusiness::Model::SearchDevicesRequest::SearchDevicesRequest
SearchDevicesRequest()
Aws::AlexaForBusiness::Model::SearchDevicesRequest::AddSortCriteria
SearchDevicesRequest & AddSortCriteria(Sort &&value)
Definition: SearchDevicesRequest.h:261
Aws::AlexaForBusiness::Model::SearchDevicesRequest::WithSortCriteria
SearchDevicesRequest & WithSortCriteria(Aws::Vector< Sort > &&value)
Definition: SearchDevicesRequest.h:245
Aws::AlexaForBusiness::Model::SearchDevicesRequest::WithFilters
SearchDevicesRequest & WithFilters(Aws::Vector< Filter > &&value)
Definition: SearchDevicesRequest.h:180
Aws::AlexaForBusiness::Model::Filter
Definition: Filter.h:35
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::AlexaForBusiness::Model::SearchDevicesRequest::AddFilters
SearchDevicesRequest & AddFilters(Filter &&value)
Definition: SearchDevicesRequest.h:196
Aws::AlexaForBusiness::Model::SearchDevicesRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: SearchDevicesRequest.h:54
AWSVector.h
Aws::AlexaForBusiness::Model::SearchDevicesRequest::WithNextToken
SearchDevicesRequest & WithNextToken(Aws::String &&value)
Definition: SearchDevicesRequest.h:94
Aws::AlexaForBusiness::Model::SearchDevicesRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: SearchDevicesRequest.h:46
Aws::AlexaForBusiness::Model::SearchDevicesRequest::SetMaxResults
void SetMaxResults(int value)
Definition: SearchDevicesRequest.h:124
Aws::AlexaForBusiness::Model::SearchDevicesRequest::SetFilters
void SetFilters(Aws::Vector< Filter > &&value)
Definition: SearchDevicesRequest.h:164
Aws::AlexaForBusiness::Model::SearchDevicesRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: SearchDevicesRequest.h:70
Sort.h
Filter.h
AWS_ALEXAFORBUSINESS_API
#define AWS_ALEXAFORBUSINESS_API
Definition: AlexaForBusiness_EXPORTS.h:28
Aws::AlexaForBusiness::Model::SearchDevicesRequest::SetNextToken
void SetNextToken(const char *value)
Definition: SearchDevicesRequest.h:78
Aws::AlexaForBusiness::Model::SearchDevicesRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: SearchDevicesRequest.h:62
AWSString.h
Aws::AlexaForBusiness::Model::SearchDevicesRequest::WithNextToken
SearchDevicesRequest & WithNextToken(const Aws::String &value)
Definition: SearchDevicesRequest.h:86
Aws::AlexaForBusiness::Model::SearchDevicesRequest::AddSortCriteria
SearchDevicesRequest & AddSortCriteria(const Sort &value)
Definition: SearchDevicesRequest.h:253
AlexaForBusiness_EXPORTS.h
Aws::AlexaForBusiness::Model::SearchDevicesRequest::GetFilters
const Aws::Vector< Filter > & GetFilters() const
Definition: SearchDevicesRequest.h:140
Aws::AlexaForBusiness::Model::SearchDevicesRequest::FiltersHasBeenSet
bool FiltersHasBeenSet() const
Definition: SearchDevicesRequest.h:148
Aws
Definition: AccessManagementClient.h:15
Aws::AlexaForBusiness::AlexaForBusinessRequest
Definition: AlexaForBusinessRequest.h:17
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::AlexaForBusiness::Model::SearchDevicesRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::AlexaForBusiness::Model::SearchDevicesRequest::WithNextToken
SearchDevicesRequest & WithNextToken(const char *value)
Definition: SearchDevicesRequest.h:102
Aws::AlexaForBusiness::Model::SearchDevicesRequest::GetMaxResults
int GetMaxResults() const
Definition: SearchDevicesRequest.h:110
Aws::AlexaForBusiness::Model::SearchDevicesRequest::WithSortCriteria
SearchDevicesRequest & WithSortCriteria(const Aws::Vector< Sort > &value)
Definition: SearchDevicesRequest.h:237
Aws::AlexaForBusiness::Model::SearchDevicesRequest::AddFilters
SearchDevicesRequest & AddFilters(const Filter &value)
Definition: SearchDevicesRequest.h:188
Aws::AlexaForBusiness::Model::Sort
Definition: Sort.h:33
Aws::AlexaForBusiness::Model::SearchDevicesRequest::SetSortCriteria
void SetSortCriteria(const Aws::Vector< Sort > &value)
Definition: SearchDevicesRequest.h:221
Aws::AlexaForBusiness::Model::SearchDevicesRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: SearchDevicesRequest.h:33
Aws::AlexaForBusiness::Model::SearchDevicesRequest::GetSortCriteria
const Aws::Vector< Sort > & GetSortCriteria() const
Definition: SearchDevicesRequest.h:205
AlexaForBusinessRequest.h
Aws::AlexaForBusiness::Model::SearchDevicesRequest::WithMaxResults
SearchDevicesRequest & WithMaxResults(int value)
Definition: SearchDevicesRequest.h:131
Aws::AlexaForBusiness::Model::SearchDevicesRequest::MaxResultsHasBeenSet
bool MaxResultsHasBeenSet() const
Definition: SearchDevicesRequest.h:117