AWS SDK for C++

AWS SDK for C++ Version 1.11.552

All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Pages
Loading...
Searching...
No Matches
SearchContactsRequest.h
1
6#pragma once
7#include <aws/connect/Connect_EXPORTS.h>
8#include <aws/connect/ConnectRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/connect/model/SearchContactsTimeRange.h>
11#include <aws/connect/model/SearchCriteria.h>
12#include <aws/connect/model/Sort.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Connect
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_CONNECT_API SearchContactsRequest() = default;
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_CONNECT_API Aws::String SerializePayload() const override;
36
37
39
43 inline const Aws::String& GetInstanceId() const { return m_instanceId; }
44 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
45 template<typename InstanceIdT = Aws::String>
46 void SetInstanceId(InstanceIdT&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::forward<InstanceIdT>(value); }
47 template<typename InstanceIdT = Aws::String>
48 SearchContactsRequest& WithInstanceId(InstanceIdT&& value) { SetInstanceId(std::forward<InstanceIdT>(value)); return *this;}
50
52
55 inline const SearchContactsTimeRange& GetTimeRange() const { return m_timeRange; }
56 inline bool TimeRangeHasBeenSet() const { return m_timeRangeHasBeenSet; }
57 template<typename TimeRangeT = SearchContactsTimeRange>
58 void SetTimeRange(TimeRangeT&& value) { m_timeRangeHasBeenSet = true; m_timeRange = std::forward<TimeRangeT>(value); }
59 template<typename TimeRangeT = SearchContactsTimeRange>
60 SearchContactsRequest& WithTimeRange(TimeRangeT&& value) { SetTimeRange(std::forward<TimeRangeT>(value)); return *this;}
62
64
67 inline const SearchCriteria& GetSearchCriteria() const { return m_searchCriteria; }
68 inline bool SearchCriteriaHasBeenSet() const { return m_searchCriteriaHasBeenSet; }
69 template<typename SearchCriteriaT = SearchCriteria>
70 void SetSearchCriteria(SearchCriteriaT&& value) { m_searchCriteriaHasBeenSet = true; m_searchCriteria = std::forward<SearchCriteriaT>(value); }
71 template<typename SearchCriteriaT = SearchCriteria>
72 SearchContactsRequest& WithSearchCriteria(SearchCriteriaT&& value) { SetSearchCriteria(std::forward<SearchCriteriaT>(value)); return *this;}
74
76
79 inline int GetMaxResults() const { return m_maxResults; }
80 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
81 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
82 inline SearchContactsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
84
86
90 inline const Aws::String& GetNextToken() const { return m_nextToken; }
91 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
92 template<typename NextTokenT = Aws::String>
93 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
94 template<typename NextTokenT = Aws::String>
95 SearchContactsRequest& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
97
99
102 inline const Sort& GetSort() const { return m_sort; }
103 inline bool SortHasBeenSet() const { return m_sortHasBeenSet; }
104 template<typename SortT = Sort>
105 void SetSort(SortT&& value) { m_sortHasBeenSet = true; m_sort = std::forward<SortT>(value); }
106 template<typename SortT = Sort>
107 SearchContactsRequest& WithSort(SortT&& value) { SetSort(std::forward<SortT>(value)); return *this;}
109 private:
110
111 Aws::String m_instanceId;
112 bool m_instanceIdHasBeenSet = false;
113
114 SearchContactsTimeRange m_timeRange;
115 bool m_timeRangeHasBeenSet = false;
116
117 SearchCriteria m_searchCriteria;
118 bool m_searchCriteriaHasBeenSet = false;
119
120 int m_maxResults{0};
121 bool m_maxResultsHasBeenSet = false;
122
123 Aws::String m_nextToken;
124 bool m_nextTokenHasBeenSet = false;
125
126 Sort m_sort;
127 bool m_sortHasBeenSet = false;
128 };
129
130} // namespace Model
131} // namespace Connect
132} // namespace Aws
SearchContactsRequest & WithInstanceId(InstanceIdT &&value)
SearchContactsRequest & WithNextToken(NextTokenT &&value)
void SetSearchCriteria(SearchCriteriaT &&value)
virtual const char * GetServiceRequestName() const override
AWS_CONNECT_API SearchContactsRequest()=default
AWS_CONNECT_API Aws::String SerializePayload() const override
SearchContactsRequest & WithMaxResults(int value)
SearchContactsRequest & WithSearchCriteria(SearchCriteriaT &&value)
const SearchCriteria & GetSearchCriteria() const
SearchContactsRequest & WithSort(SortT &&value)
const SearchContactsTimeRange & GetTimeRange() const
SearchContactsRequest & WithTimeRange(TimeRangeT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String