AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetInstanceId(const Aws::String& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; }
46 inline void SetInstanceId(Aws::String&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::move(value); }
47 inline void SetInstanceId(const char* value) { m_instanceIdHasBeenSet = true; m_instanceId.assign(value); }
48 inline SearchContactsRequest& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;}
49 inline SearchContactsRequest& WithInstanceId(Aws::String&& value) { SetInstanceId(std::move(value)); return *this;}
50 inline SearchContactsRequest& WithInstanceId(const char* value) { SetInstanceId(value); return *this;}
52
54
57 inline const SearchContactsTimeRange& GetTimeRange() const{ return m_timeRange; }
58 inline bool TimeRangeHasBeenSet() const { return m_timeRangeHasBeenSet; }
59 inline void SetTimeRange(const SearchContactsTimeRange& value) { m_timeRangeHasBeenSet = true; m_timeRange = value; }
60 inline void SetTimeRange(SearchContactsTimeRange&& value) { m_timeRangeHasBeenSet = true; m_timeRange = std::move(value); }
61 inline SearchContactsRequest& WithTimeRange(const SearchContactsTimeRange& value) { SetTimeRange(value); return *this;}
62 inline SearchContactsRequest& WithTimeRange(SearchContactsTimeRange&& value) { SetTimeRange(std::move(value)); return *this;}
64
66
69 inline const SearchCriteria& GetSearchCriteria() const{ return m_searchCriteria; }
70 inline bool SearchCriteriaHasBeenSet() const { return m_searchCriteriaHasBeenSet; }
71 inline void SetSearchCriteria(const SearchCriteria& value) { m_searchCriteriaHasBeenSet = true; m_searchCriteria = value; }
72 inline void SetSearchCriteria(SearchCriteria&& value) { m_searchCriteriaHasBeenSet = true; m_searchCriteria = std::move(value); }
73 inline SearchContactsRequest& WithSearchCriteria(const SearchCriteria& value) { SetSearchCriteria(value); return *this;}
74 inline SearchContactsRequest& WithSearchCriteria(SearchCriteria&& value) { SetSearchCriteria(std::move(value)); return *this;}
76
78
81 inline int GetMaxResults() const{ return m_maxResults; }
82 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
83 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
84 inline SearchContactsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
86
88
92 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
93 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
94 inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
95 inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
96 inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
97 inline SearchContactsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
98 inline SearchContactsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
99 inline SearchContactsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
101
103
106 inline const Sort& GetSort() const{ return m_sort; }
107 inline bool SortHasBeenSet() const { return m_sortHasBeenSet; }
108 inline void SetSort(const Sort& value) { m_sortHasBeenSet = true; m_sort = value; }
109 inline void SetSort(Sort&& value) { m_sortHasBeenSet = true; m_sort = std::move(value); }
110 inline SearchContactsRequest& WithSort(const Sort& value) { SetSort(value); return *this;}
111 inline SearchContactsRequest& WithSort(Sort&& value) { SetSort(std::move(value)); return *this;}
113 private:
114
115 Aws::String m_instanceId;
116 bool m_instanceIdHasBeenSet = false;
117
118 SearchContactsTimeRange m_timeRange;
119 bool m_timeRangeHasBeenSet = false;
120
121 SearchCriteria m_searchCriteria;
122 bool m_searchCriteriaHasBeenSet = false;
123
124 int m_maxResults;
125 bool m_maxResultsHasBeenSet = false;
126
127 Aws::String m_nextToken;
128 bool m_nextTokenHasBeenSet = false;
129
130 Sort m_sort;
131 bool m_sortHasBeenSet = false;
132 };
133
134} // namespace Model
135} // namespace Connect
136} // namespace Aws
SearchContactsRequest & WithTimeRange(SearchContactsTimeRange &&value)
SearchContactsRequest & WithNextToken(const Aws::String &value)
SearchContactsRequest & WithSort(const Sort &value)
SearchContactsRequest & WithTimeRange(const SearchContactsTimeRange &value)
SearchContactsRequest & WithNextToken(const char *value)
SearchContactsRequest & WithNextToken(Aws::String &&value)
virtual const char * GetServiceRequestName() const override
void SetTimeRange(SearchContactsTimeRange &&value)
void SetTimeRange(const SearchContactsTimeRange &value)
AWS_CONNECT_API Aws::String SerializePayload() const override
SearchContactsRequest & WithSearchCriteria(const SearchCriteria &value)
SearchContactsRequest & WithInstanceId(const char *value)
SearchContactsRequest & WithMaxResults(int value)
void SetSearchCriteria(const SearchCriteria &value)
SearchContactsRequest & WithInstanceId(const Aws::String &value)
const SearchCriteria & GetSearchCriteria() const
SearchContactsRequest & WithSearchCriteria(SearchCriteria &&value)
SearchContactsRequest & WithInstanceId(Aws::String &&value)
const SearchContactsTimeRange & GetTimeRange() const
SearchContactsRequest & WithSort(Sort &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String