AWS SDK for C++  1.9.44
AWS SDK for C++
SearchContactsRequest.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 "SearchContacts"; }
34 
35  Aws::String SerializePayload() const override;
36 
38 
39 
44  inline const Aws::Vector<Filter>& GetFilters() const{ return m_filters; }
45 
50  inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
51 
56  inline void SetFilters(const Aws::Vector<Filter>& value) { m_filtersHasBeenSet = true; m_filters = value; }
57 
62  inline void SetFilters(Aws::Vector<Filter>&& value) { m_filtersHasBeenSet = true; m_filters = std::move(value); }
63 
68  inline SearchContactsRequest& WithFilters(const Aws::Vector<Filter>& value) { SetFilters(value); return *this;}
69 
74  inline SearchContactsRequest& WithFilters(Aws::Vector<Filter>&& value) { SetFilters(std::move(value)); return *this;}
75 
80  inline SearchContactsRequest& AddFilters(const Filter& value) { m_filtersHasBeenSet = true; m_filters.push_back(value); return *this; }
81 
86  inline SearchContactsRequest& AddFilters(Filter&& value) { m_filtersHasBeenSet = true; m_filters.push_back(std::move(value)); return *this; }
87 
88 
93  inline const Aws::Vector<Sort>& GetSortCriteria() const{ return m_sortCriteria; }
94 
99  inline bool SortCriteriaHasBeenSet() const { return m_sortCriteriaHasBeenSet; }
100 
105  inline void SetSortCriteria(const Aws::Vector<Sort>& value) { m_sortCriteriaHasBeenSet = true; m_sortCriteria = value; }
106 
111  inline void SetSortCriteria(Aws::Vector<Sort>&& value) { m_sortCriteriaHasBeenSet = true; m_sortCriteria = std::move(value); }
112 
117  inline SearchContactsRequest& WithSortCriteria(const Aws::Vector<Sort>& value) { SetSortCriteria(value); return *this;}
118 
123  inline SearchContactsRequest& WithSortCriteria(Aws::Vector<Sort>&& value) { SetSortCriteria(std::move(value)); return *this;}
124 
129  inline SearchContactsRequest& AddSortCriteria(const Sort& value) { m_sortCriteriaHasBeenSet = true; m_sortCriteria.push_back(value); return *this; }
130 
135  inline SearchContactsRequest& AddSortCriteria(Sort&& value) { m_sortCriteriaHasBeenSet = true; m_sortCriteria.push_back(std::move(value)); return *this; }
136 
137 
144  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
145 
152  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
153 
160  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
161 
168  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
169 
176  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
177 
184  inline SearchContactsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
185 
192  inline SearchContactsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
193 
200  inline SearchContactsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
201 
202 
208  inline int GetMaxResults() const{ return m_maxResults; }
209 
215  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
216 
222  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
223 
229  inline SearchContactsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
230 
231  private:
232 
233  Aws::Vector<Filter> m_filters;
234  bool m_filtersHasBeenSet;
235 
236  Aws::Vector<Sort> m_sortCriteria;
237  bool m_sortCriteriaHasBeenSet;
238 
239  Aws::String m_nextToken;
240  bool m_nextTokenHasBeenSet;
241 
242  int m_maxResults;
243  bool m_maxResultsHasBeenSet;
244  };
245 
246 } // namespace Model
247 } // namespace AlexaForBusiness
248 } // namespace Aws
Aws::AlexaForBusiness::Model::SearchContactsRequest::WithNextToken
SearchContactsRequest & WithNextToken(const Aws::String &value)
Definition: SearchContactsRequest.h:184
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::AlexaForBusiness::Model::SearchContactsRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: SearchContactsRequest.h:144
Aws::AlexaForBusiness::Model::SearchContactsRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::AlexaForBusiness::Model::SearchContactsRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: SearchContactsRequest.h:168
Aws::AlexaForBusiness::Model::SearchContactsRequest::AddSortCriteria
SearchContactsRequest & AddSortCriteria(Sort &&value)
Definition: SearchContactsRequest.h:135
Aws::AlexaForBusiness::Model::SearchContactsRequest::AddFilters
SearchContactsRequest & AddFilters(Filter &&value)
Definition: SearchContactsRequest.h:86
Aws::AlexaForBusiness::Model::SearchContactsRequest::SetFilters
void SetFilters(Aws::Vector< Filter > &&value)
Definition: SearchContactsRequest.h:62
Aws::AlexaForBusiness::Model::SearchContactsRequest::GetMaxResults
int GetMaxResults() const
Definition: SearchContactsRequest.h:208
Aws::AlexaForBusiness::Model::Filter
Definition: Filter.h:35
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::AlexaForBusiness::Model::SearchContactsRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: SearchContactsRequest.h:33
Aws::AlexaForBusiness::Model::SearchContactsRequest::MaxResultsHasBeenSet
bool MaxResultsHasBeenSet() const
Definition: SearchContactsRequest.h:215
Aws::AlexaForBusiness::Model::SearchContactsRequest::WithSortCriteria
SearchContactsRequest & WithSortCriteria(const Aws::Vector< Sort > &value)
Definition: SearchContactsRequest.h:117
AWSVector.h
Aws::AlexaForBusiness::Model::SearchContactsRequest::SetFilters
void SetFilters(const Aws::Vector< Filter > &value)
Definition: SearchContactsRequest.h:56
Aws::AlexaForBusiness::Model::SearchContactsRequest::SortCriteriaHasBeenSet
bool SortCriteriaHasBeenSet() const
Definition: SearchContactsRequest.h:99
Aws::AlexaForBusiness::Model::SearchContactsRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Sort.h
Aws::AlexaForBusiness::Model::SearchContactsRequest::SetMaxResults
void SetMaxResults(int value)
Definition: SearchContactsRequest.h:222
Filter.h
AWS_ALEXAFORBUSINESS_API
#define AWS_ALEXAFORBUSINESS_API
Definition: AlexaForBusiness_EXPORTS.h:28
Aws::AlexaForBusiness::Model::SearchContactsRequest::SearchContactsRequest
SearchContactsRequest()
Aws::AlexaForBusiness::Model::SearchContactsRequest::GetSortCriteria
const Aws::Vector< Sort > & GetSortCriteria() const
Definition: SearchContactsRequest.h:93
Aws::AlexaForBusiness::Model::SearchContactsRequest::WithFilters
SearchContactsRequest & WithFilters(const Aws::Vector< Filter > &value)
Definition: SearchContactsRequest.h:68
AWSString.h
Aws::AlexaForBusiness::Model::SearchContactsRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: SearchContactsRequest.h:160
Aws::AlexaForBusiness::Model::SearchContactsRequest::GetFilters
const Aws::Vector< Filter > & GetFilters() const
Definition: SearchContactsRequest.h:44
Aws::AlexaForBusiness::Model::SearchContactsRequest
Definition: SearchContactsRequest.h:25
Aws::AlexaForBusiness::Model::SearchContactsRequest::WithNextToken
SearchContactsRequest & WithNextToken(const char *value)
Definition: SearchContactsRequest.h:200
AlexaForBusiness_EXPORTS.h
Aws
Definition: AccessManagementClient.h:15
Aws::AlexaForBusiness::Model::SearchContactsRequest::AddSortCriteria
SearchContactsRequest & AddSortCriteria(const Sort &value)
Definition: SearchContactsRequest.h:129
Aws::AlexaForBusiness::AlexaForBusinessRequest
Definition: AlexaForBusinessRequest.h:17
Aws::AlexaForBusiness::Model::SearchContactsRequest::AddFilters
SearchContactsRequest & AddFilters(const Filter &value)
Definition: SearchContactsRequest.h:80
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::AlexaForBusiness::Model::SearchContactsRequest::WithFilters
SearchContactsRequest & WithFilters(Aws::Vector< Filter > &&value)
Definition: SearchContactsRequest.h:74
Aws::AlexaForBusiness::Model::SearchContactsRequest::SetNextToken
void SetNextToken(const char *value)
Definition: SearchContactsRequest.h:176
Aws::AlexaForBusiness::Model::Sort
Definition: Sort.h:33
Aws::AlexaForBusiness::Model::SearchContactsRequest::WithNextToken
SearchContactsRequest & WithNextToken(Aws::String &&value)
Definition: SearchContactsRequest.h:192
Aws::AlexaForBusiness::Model::SearchContactsRequest::FiltersHasBeenSet
bool FiltersHasBeenSet() const
Definition: SearchContactsRequest.h:50
Aws::AlexaForBusiness::Model::SearchContactsRequest::SetSortCriteria
void SetSortCriteria(const Aws::Vector< Sort > &value)
Definition: SearchContactsRequest.h:105
Aws::AlexaForBusiness::Model::SearchContactsRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: SearchContactsRequest.h:152
Aws::AlexaForBusiness::Model::SearchContactsRequest::SetSortCriteria
void SetSortCriteria(Aws::Vector< Sort > &&value)
Definition: SearchContactsRequest.h:111
AlexaForBusinessRequest.h
Aws::AlexaForBusiness::Model::SearchContactsRequest::WithMaxResults
SearchContactsRequest & WithMaxResults(int value)
Definition: SearchContactsRequest.h:229
Aws::AlexaForBusiness::Model::SearchContactsRequest::WithSortCriteria
SearchContactsRequest & WithSortCriteria(Aws::Vector< Sort > &&value)
Definition: SearchContactsRequest.h:123