AWS SDK for C++  1.9.44
AWS SDK for C++
SearchAddressBooksRequest.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 "SearchAddressBooks"; }
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 SearchAddressBooksRequest& WithFilters(const Aws::Vector<Filter>& value) { SetFilters(value); return *this;}
69 
74  inline SearchAddressBooksRequest& WithFilters(Aws::Vector<Filter>&& value) { SetFilters(std::move(value)); return *this;}
75 
80  inline SearchAddressBooksRequest& AddFilters(const Filter& value) { m_filtersHasBeenSet = true; m_filters.push_back(value); return *this; }
81 
86  inline SearchAddressBooksRequest& 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 SearchAddressBooksRequest& WithSortCriteria(const Aws::Vector<Sort>& value) { SetSortCriteria(value); return *this;}
118 
123  inline SearchAddressBooksRequest& WithSortCriteria(Aws::Vector<Sort>&& value) { SetSortCriteria(std::move(value)); return *this;}
124 
129  inline SearchAddressBooksRequest& AddSortCriteria(const Sort& value) { m_sortCriteriaHasBeenSet = true; m_sortCriteria.push_back(value); return *this; }
130 
135  inline SearchAddressBooksRequest& 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 SearchAddressBooksRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
185 
192  inline SearchAddressBooksRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
193 
200  inline SearchAddressBooksRequest& 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 SearchAddressBooksRequest& 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::SearchAddressBooksRequest::SetFilters
void SetFilters(Aws::Vector< Filter > &&value)
Definition: SearchAddressBooksRequest.h:62
Aws::AlexaForBusiness::Model::SearchAddressBooksRequest::SetFilters
void SetFilters(const Aws::Vector< Filter > &value)
Definition: SearchAddressBooksRequest.h:56
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::AlexaForBusiness::Model::SearchAddressBooksRequest::AddSortCriteria
SearchAddressBooksRequest & AddSortCriteria(const Sort &value)
Definition: SearchAddressBooksRequest.h:129
Aws::AlexaForBusiness::Model::Filter
Definition: Filter.h:35
Aws::AlexaForBusiness::Model::SearchAddressBooksRequest::WithNextToken
SearchAddressBooksRequest & WithNextToken(Aws::String &&value)
Definition: SearchAddressBooksRequest.h:192
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSVector.h
Aws::AlexaForBusiness::Model::SearchAddressBooksRequest::WithNextToken
SearchAddressBooksRequest & WithNextToken(const Aws::String &value)
Definition: SearchAddressBooksRequest.h:184
Aws::AlexaForBusiness::Model::SearchAddressBooksRequest::WithMaxResults
SearchAddressBooksRequest & WithMaxResults(int value)
Definition: SearchAddressBooksRequest.h:229
Aws::AlexaForBusiness::Model::SearchAddressBooksRequest::WithFilters
SearchAddressBooksRequest & WithFilters(Aws::Vector< Filter > &&value)
Definition: SearchAddressBooksRequest.h:74
Aws::AlexaForBusiness::Model::SearchAddressBooksRequest::SearchAddressBooksRequest
SearchAddressBooksRequest()
Sort.h
Aws::AlexaForBusiness::Model::SearchAddressBooksRequest::SerializePayload
Aws::String SerializePayload() const override
Filter.h
AWS_ALEXAFORBUSINESS_API
#define AWS_ALEXAFORBUSINESS_API
Definition: AlexaForBusiness_EXPORTS.h:28
Aws::AlexaForBusiness::Model::SearchAddressBooksRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: SearchAddressBooksRequest.h:33
Aws::AlexaForBusiness::Model::SearchAddressBooksRequest::SetSortCriteria
void SetSortCriteria(Aws::Vector< Sort > &&value)
Definition: SearchAddressBooksRequest.h:111
Aws::AlexaForBusiness::Model::SearchAddressBooksRequest::SetSortCriteria
void SetSortCriteria(const Aws::Vector< Sort > &value)
Definition: SearchAddressBooksRequest.h:105
Aws::AlexaForBusiness::Model::SearchAddressBooksRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: SearchAddressBooksRequest.h:152
Aws::AlexaForBusiness::Model::SearchAddressBooksRequest::WithSortCriteria
SearchAddressBooksRequest & WithSortCriteria(Aws::Vector< Sort > &&value)
Definition: SearchAddressBooksRequest.h:123
Aws::AlexaForBusiness::Model::SearchAddressBooksRequest::MaxResultsHasBeenSet
bool MaxResultsHasBeenSet() const
Definition: SearchAddressBooksRequest.h:215
Aws::AlexaForBusiness::Model::SearchAddressBooksRequest::WithFilters
SearchAddressBooksRequest & WithFilters(const Aws::Vector< Filter > &value)
Definition: SearchAddressBooksRequest.h:68
AWSString.h
Aws::AlexaForBusiness::Model::SearchAddressBooksRequest::SetNextToken
void SetNextToken(const char *value)
Definition: SearchAddressBooksRequest.h:176
Aws::AlexaForBusiness::Model::SearchAddressBooksRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: SearchAddressBooksRequest.h:168
AlexaForBusiness_EXPORTS.h
Aws::AlexaForBusiness::Model::SearchAddressBooksRequest::AddFilters
SearchAddressBooksRequest & AddFilters(const Filter &value)
Definition: SearchAddressBooksRequest.h:80
Aws::AlexaForBusiness::Model::SearchAddressBooksRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::AlexaForBusiness::Model::SearchAddressBooksRequest::FiltersHasBeenSet
bool FiltersHasBeenSet() const
Definition: SearchAddressBooksRequest.h:50
Aws
Definition: AccessManagementClient.h:15
Aws::AlexaForBusiness::Model::SearchAddressBooksRequest::GetMaxResults
int GetMaxResults() const
Definition: SearchAddressBooksRequest.h:208
Aws::AlexaForBusiness::AlexaForBusinessRequest
Definition: AlexaForBusinessRequest.h:17
Aws::AlexaForBusiness::Model::SearchAddressBooksRequest::GetFilters
const Aws::Vector< Filter > & GetFilters() const
Definition: SearchAddressBooksRequest.h:44
Aws::AlexaForBusiness::Model::SearchAddressBooksRequest
Definition: SearchAddressBooksRequest.h:25
Aws::AlexaForBusiness::Model::SearchAddressBooksRequest::GetSortCriteria
const Aws::Vector< Sort > & GetSortCriteria() const
Definition: SearchAddressBooksRequest.h:93
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::AlexaForBusiness::Model::Sort
Definition: Sort.h:33
Aws::AlexaForBusiness::Model::SearchAddressBooksRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: SearchAddressBooksRequest.h:160
Aws::AlexaForBusiness::Model::SearchAddressBooksRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: SearchAddressBooksRequest.h:144
Aws::AlexaForBusiness::Model::SearchAddressBooksRequest::WithSortCriteria
SearchAddressBooksRequest & WithSortCriteria(const Aws::Vector< Sort > &value)
Definition: SearchAddressBooksRequest.h:117
Aws::AlexaForBusiness::Model::SearchAddressBooksRequest::SortCriteriaHasBeenSet
bool SortCriteriaHasBeenSet() const
Definition: SearchAddressBooksRequest.h:99
Aws::AlexaForBusiness::Model::SearchAddressBooksRequest::AddSortCriteria
SearchAddressBooksRequest & AddSortCriteria(Sort &&value)
Definition: SearchAddressBooksRequest.h:135
Aws::AlexaForBusiness::Model::SearchAddressBooksRequest::AddFilters
SearchAddressBooksRequest & AddFilters(Filter &&value)
Definition: SearchAddressBooksRequest.h:86
Aws::AlexaForBusiness::Model::SearchAddressBooksRequest::WithNextToken
SearchAddressBooksRequest & WithNextToken(const char *value)
Definition: SearchAddressBooksRequest.h:200
AlexaForBusinessRequest.h
Aws::AlexaForBusiness::Model::SearchAddressBooksRequest::SetMaxResults
void SetMaxResults(int value)
Definition: SearchAddressBooksRequest.h:222