AWS SDK for C++

AWS SDK for C++ Version 1.11.699

Loading...
Searching...
No Matches
SearchContactsRequest.h
1
6#pragma once
7#include <aws/connect/ConnectRequest.h>
8#include <aws/connect/Connect_EXPORTS.h>
9#include <aws/connect/model/SearchContactsTimeRange.h>
10#include <aws/connect/model/SearchCriteria.h>
11#include <aws/connect/model/Sort.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Connect {
18namespace Model {
19
23 public:
24 AWS_CONNECT_API SearchContactsRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "SearchContacts"; }
31
32 AWS_CONNECT_API Aws::String SerializePayload() const override;
33
35
39 inline const Aws::String& GetInstanceId() const { return m_instanceId; }
40 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
41 template <typename InstanceIdT = Aws::String>
42 void SetInstanceId(InstanceIdT&& value) {
43 m_instanceIdHasBeenSet = true;
44 m_instanceId = std::forward<InstanceIdT>(value);
45 }
46 template <typename InstanceIdT = Aws::String>
47 SearchContactsRequest& WithInstanceId(InstanceIdT&& value) {
48 SetInstanceId(std::forward<InstanceIdT>(value));
49 return *this;
50 }
52
54
57 inline const SearchContactsTimeRange& GetTimeRange() const { return m_timeRange; }
58 inline bool TimeRangeHasBeenSet() const { return m_timeRangeHasBeenSet; }
59 template <typename TimeRangeT = SearchContactsTimeRange>
60 void SetTimeRange(TimeRangeT&& value) {
61 m_timeRangeHasBeenSet = true;
62 m_timeRange = std::forward<TimeRangeT>(value);
63 }
64 template <typename TimeRangeT = SearchContactsTimeRange>
65 SearchContactsRequest& WithTimeRange(TimeRangeT&& value) {
66 SetTimeRange(std::forward<TimeRangeT>(value));
67 return *this;
68 }
70
72
75 inline const SearchCriteria& GetSearchCriteria() const { return m_searchCriteria; }
76 inline bool SearchCriteriaHasBeenSet() const { return m_searchCriteriaHasBeenSet; }
77 template <typename SearchCriteriaT = SearchCriteria>
78 void SetSearchCriteria(SearchCriteriaT&& value) {
79 m_searchCriteriaHasBeenSet = true;
80 m_searchCriteria = std::forward<SearchCriteriaT>(value);
81 }
82 template <typename SearchCriteriaT = SearchCriteria>
83 SearchContactsRequest& WithSearchCriteria(SearchCriteriaT&& value) {
84 SetSearchCriteria(std::forward<SearchCriteriaT>(value));
85 return *this;
86 }
88
90
93 inline int GetMaxResults() const { return m_maxResults; }
94 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
95 inline void SetMaxResults(int value) {
96 m_maxResultsHasBeenSet = true;
97 m_maxResults = value;
98 }
100 SetMaxResults(value);
101 return *this;
102 }
104
106
110 inline const Aws::String& GetNextToken() const { return m_nextToken; }
111 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
112 template <typename NextTokenT = Aws::String>
113 void SetNextToken(NextTokenT&& value) {
114 m_nextTokenHasBeenSet = true;
115 m_nextToken = std::forward<NextTokenT>(value);
116 }
117 template <typename NextTokenT = Aws::String>
119 SetNextToken(std::forward<NextTokenT>(value));
120 return *this;
121 }
123
125
128 inline const Sort& GetSort() const { return m_sort; }
129 inline bool SortHasBeenSet() const { return m_sortHasBeenSet; }
130 template <typename SortT = Sort>
131 void SetSort(SortT&& value) {
132 m_sortHasBeenSet = true;
133 m_sort = std::forward<SortT>(value);
134 }
135 template <typename SortT = Sort>
137 SetSort(std::forward<SortT>(value));
138 return *this;
139 }
141 private:
142 Aws::String m_instanceId;
143 bool m_instanceIdHasBeenSet = false;
144
145 SearchContactsTimeRange m_timeRange;
146 bool m_timeRangeHasBeenSet = false;
147
148 SearchCriteria m_searchCriteria;
149 bool m_searchCriteriaHasBeenSet = false;
150
151 int m_maxResults{0};
152 bool m_maxResultsHasBeenSet = false;
153
154 Aws::String m_nextToken;
155 bool m_nextTokenHasBeenSet = false;
156
157 Sort m_sort;
158 bool m_sortHasBeenSet = false;
159};
160
161} // namespace Model
162} // namespace Connect
163} // 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