AWS SDK for C++  1.9.44
AWS SDK for C++
SearchRoomsRequest.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 "SearchRooms"; }
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 SearchRoomsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
87 
94  inline SearchRoomsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
95 
102  inline SearchRoomsRequest& 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 SearchRoomsRequest& 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 SearchRoomsRequest& WithFilters(const Aws::Vector<Filter>& value) { SetFilters(value); return *this;}
163 
168  inline SearchRoomsRequest& WithFilters(Aws::Vector<Filter>&& value) { SetFilters(std::move(value)); return *this;}
169 
174  inline SearchRoomsRequest& AddFilters(const Filter& value) { m_filtersHasBeenSet = true; m_filters.push_back(value); return *this; }
175 
180  inline SearchRoomsRequest& AddFilters(Filter&& value) { m_filtersHasBeenSet = true; m_filters.push_back(std::move(value)); return *this; }
181 
182 
187  inline const Aws::Vector<Sort>& GetSortCriteria() const{ return m_sortCriteria; }
188 
193  inline bool SortCriteriaHasBeenSet() const { return m_sortCriteriaHasBeenSet; }
194 
199  inline void SetSortCriteria(const Aws::Vector<Sort>& value) { m_sortCriteriaHasBeenSet = true; m_sortCriteria = value; }
200 
205  inline void SetSortCriteria(Aws::Vector<Sort>&& value) { m_sortCriteriaHasBeenSet = true; m_sortCriteria = std::move(value); }
206 
211  inline SearchRoomsRequest& WithSortCriteria(const Aws::Vector<Sort>& value) { SetSortCriteria(value); return *this;}
212 
217  inline SearchRoomsRequest& WithSortCriteria(Aws::Vector<Sort>&& value) { SetSortCriteria(std::move(value)); return *this;}
218 
223  inline SearchRoomsRequest& AddSortCriteria(const Sort& value) { m_sortCriteriaHasBeenSet = true; m_sortCriteria.push_back(value); return *this; }
224 
229  inline SearchRoomsRequest& AddSortCriteria(Sort&& value) { m_sortCriteriaHasBeenSet = true; m_sortCriteria.push_back(std::move(value)); return *this; }
230 
231  private:
232 
233  Aws::String m_nextToken;
234  bool m_nextTokenHasBeenSet;
235 
236  int m_maxResults;
237  bool m_maxResultsHasBeenSet;
238 
239  Aws::Vector<Filter> m_filters;
240  bool m_filtersHasBeenSet;
241 
242  Aws::Vector<Sort> m_sortCriteria;
243  bool m_sortCriteriaHasBeenSet;
244  };
245 
246 } // namespace Model
247 } // namespace AlexaForBusiness
248 } // namespace Aws
Aws::AlexaForBusiness::Model::SearchRoomsRequest
Definition: SearchRoomsRequest.h:25
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::AlexaForBusiness::Model::SearchRoomsRequest::AddFilters
SearchRoomsRequest & AddFilters(Filter &&value)
Definition: SearchRoomsRequest.h:180
Aws::AlexaForBusiness::Model::SearchRoomsRequest::SearchRoomsRequest
SearchRoomsRequest()
Aws::AlexaForBusiness::Model::SearchRoomsRequest::SetSortCriteria
void SetSortCriteria(const Aws::Vector< Sort > &value)
Definition: SearchRoomsRequest.h:199
Aws::AlexaForBusiness::Model::SearchRoomsRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: SearchRoomsRequest.h:70
Aws::AlexaForBusiness::Model::SearchRoomsRequest::WithMaxResults
SearchRoomsRequest & WithMaxResults(int value)
Definition: SearchRoomsRequest.h:131
Aws::AlexaForBusiness::Model::SearchRoomsRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: SearchRoomsRequest.h:33
Aws::AlexaForBusiness::Model::SearchRoomsRequest::WithFilters
SearchRoomsRequest & WithFilters(const Aws::Vector< Filter > &value)
Definition: SearchRoomsRequest.h:162
Aws::AlexaForBusiness::Model::SearchRoomsRequest::WithNextToken
SearchRoomsRequest & WithNextToken(const Aws::String &value)
Definition: SearchRoomsRequest.h:86
Aws::AlexaForBusiness::Model::SearchRoomsRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::AlexaForBusiness::Model::Filter
Definition: Filter.h:35
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::AlexaForBusiness::Model::SearchRoomsRequest::SetFilters
void SetFilters(const Aws::Vector< Filter > &value)
Definition: SearchRoomsRequest.h:150
Aws::AlexaForBusiness::Model::SearchRoomsRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::AlexaForBusiness::Model::SearchRoomsRequest::WithSortCriteria
SearchRoomsRequest & WithSortCriteria(const Aws::Vector< Sort > &value)
Definition: SearchRoomsRequest.h:211
AWSVector.h
Aws::AlexaForBusiness::Model::SearchRoomsRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: SearchRoomsRequest.h:46
Aws::AlexaForBusiness::Model::SearchRoomsRequest::GetMaxResults
int GetMaxResults() const
Definition: SearchRoomsRequest.h:110
Sort.h
Aws::AlexaForBusiness::Model::SearchRoomsRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: SearchRoomsRequest.h:54
Filter.h
Aws::AlexaForBusiness::Model::SearchRoomsRequest::WithFilters
SearchRoomsRequest & WithFilters(Aws::Vector< Filter > &&value)
Definition: SearchRoomsRequest.h:168
AWS_ALEXAFORBUSINESS_API
#define AWS_ALEXAFORBUSINESS_API
Definition: AlexaForBusiness_EXPORTS.h:28
Aws::AlexaForBusiness::Model::SearchRoomsRequest::SetMaxResults
void SetMaxResults(int value)
Definition: SearchRoomsRequest.h:124
Aws::AlexaForBusiness::Model::SearchRoomsRequest::WithNextToken
SearchRoomsRequest & WithNextToken(Aws::String &&value)
Definition: SearchRoomsRequest.h:94
Aws::AlexaForBusiness::Model::SearchRoomsRequest::GetFilters
const Aws::Vector< Filter > & GetFilters() const
Definition: SearchRoomsRequest.h:138
AWSString.h
Aws::AlexaForBusiness::Model::SearchRoomsRequest::AddSortCriteria
SearchRoomsRequest & AddSortCriteria(Sort &&value)
Definition: SearchRoomsRequest.h:229
Aws::AlexaForBusiness::Model::SearchRoomsRequest::MaxResultsHasBeenSet
bool MaxResultsHasBeenSet() const
Definition: SearchRoomsRequest.h:117
Aws::AlexaForBusiness::Model::SearchRoomsRequest::WithNextToken
SearchRoomsRequest & WithNextToken(const char *value)
Definition: SearchRoomsRequest.h:102
Aws::AlexaForBusiness::Model::SearchRoomsRequest::SetNextToken
void SetNextToken(const char *value)
Definition: SearchRoomsRequest.h:78
Aws::AlexaForBusiness::Model::SearchRoomsRequest::SetFilters
void SetFilters(Aws::Vector< Filter > &&value)
Definition: SearchRoomsRequest.h:156
AlexaForBusiness_EXPORTS.h
Aws::AlexaForBusiness::Model::SearchRoomsRequest::GetSortCriteria
const Aws::Vector< Sort > & GetSortCriteria() const
Definition: SearchRoomsRequest.h:187
Aws::AlexaForBusiness::Model::SearchRoomsRequest::WithSortCriteria
SearchRoomsRequest & WithSortCriteria(Aws::Vector< Sort > &&value)
Definition: SearchRoomsRequest.h:217
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::SearchRoomsRequest::AddFilters
SearchRoomsRequest & AddFilters(const Filter &value)
Definition: SearchRoomsRequest.h:174
Aws::AlexaForBusiness::Model::SearchRoomsRequest::SortCriteriaHasBeenSet
bool SortCriteriaHasBeenSet() const
Definition: SearchRoomsRequest.h:193
Aws::AlexaForBusiness::Model::SearchRoomsRequest::SetSortCriteria
void SetSortCriteria(Aws::Vector< Sort > &&value)
Definition: SearchRoomsRequest.h:205
Aws::AlexaForBusiness::Model::Sort
Definition: Sort.h:33
Aws::AlexaForBusiness::Model::SearchRoomsRequest::FiltersHasBeenSet
bool FiltersHasBeenSet() const
Definition: SearchRoomsRequest.h:144
Aws::AlexaForBusiness::Model::SearchRoomsRequest::AddSortCriteria
SearchRoomsRequest & AddSortCriteria(const Sort &value)
Definition: SearchRoomsRequest.h:223
AlexaForBusinessRequest.h
Aws::AlexaForBusiness::Model::SearchRoomsRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: SearchRoomsRequest.h:62