AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
SearchUsersRequest.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/UserSearchFilter.h>
11#include <aws/connect/model/UserSearchCriteria.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Connect
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_CONNECT_API SearchUsersRequest();
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "SearchUsers"; }
33
34 AWS_CONNECT_API Aws::String SerializePayload() const override;
35
36
38
45 inline const Aws::String& GetInstanceId() const{ return m_instanceId; }
46 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
47 inline void SetInstanceId(const Aws::String& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; }
48 inline void SetInstanceId(Aws::String&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::move(value); }
49 inline void SetInstanceId(const char* value) { m_instanceIdHasBeenSet = true; m_instanceId.assign(value); }
50 inline SearchUsersRequest& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;}
51 inline SearchUsersRequest& WithInstanceId(Aws::String&& value) { SetInstanceId(std::move(value)); return *this;}
52 inline SearchUsersRequest& WithInstanceId(const char* value) { SetInstanceId(value); return *this;}
54
56
60 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
61 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
62 inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
63 inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
64 inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
65 inline SearchUsersRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
66 inline SearchUsersRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
67 inline SearchUsersRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
69
71
74 inline int GetMaxResults() const{ return m_maxResults; }
75 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
76 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
77 inline SearchUsersRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
79
81
84 inline const UserSearchFilter& GetSearchFilter() const{ return m_searchFilter; }
85 inline bool SearchFilterHasBeenSet() const { return m_searchFilterHasBeenSet; }
86 inline void SetSearchFilter(const UserSearchFilter& value) { m_searchFilterHasBeenSet = true; m_searchFilter = value; }
87 inline void SetSearchFilter(UserSearchFilter&& value) { m_searchFilterHasBeenSet = true; m_searchFilter = std::move(value); }
88 inline SearchUsersRequest& WithSearchFilter(const UserSearchFilter& value) { SetSearchFilter(value); return *this;}
89 inline SearchUsersRequest& WithSearchFilter(UserSearchFilter&& value) { SetSearchFilter(std::move(value)); return *this;}
91
93
94 inline const UserSearchCriteria& GetSearchCriteria() const{ return m_searchCriteria; }
95 inline bool SearchCriteriaHasBeenSet() const { return m_searchCriteriaHasBeenSet; }
96 inline void SetSearchCriteria(const UserSearchCriteria& value) { m_searchCriteriaHasBeenSet = true; m_searchCriteria = value; }
97 inline void SetSearchCriteria(UserSearchCriteria&& value) { m_searchCriteriaHasBeenSet = true; m_searchCriteria = std::move(value); }
98 inline SearchUsersRequest& WithSearchCriteria(const UserSearchCriteria& value) { SetSearchCriteria(value); return *this;}
99 inline SearchUsersRequest& WithSearchCriteria(UserSearchCriteria&& value) { SetSearchCriteria(std::move(value)); return *this;}
101 private:
102
103 Aws::String m_instanceId;
104 bool m_instanceIdHasBeenSet = false;
105
106 Aws::String m_nextToken;
107 bool m_nextTokenHasBeenSet = false;
108
109 int m_maxResults;
110 bool m_maxResultsHasBeenSet = false;
111
112 UserSearchFilter m_searchFilter;
113 bool m_searchFilterHasBeenSet = false;
114
115 UserSearchCriteria m_searchCriteria;
116 bool m_searchCriteriaHasBeenSet = false;
117 };
118
119} // namespace Model
120} // namespace Connect
121} // namespace Aws
SearchUsersRequest & WithSearchCriteria(UserSearchCriteria &&value)
void SetSearchFilter(const UserSearchFilter &value)
SearchUsersRequest & WithInstanceId(const Aws::String &value)
const UserSearchFilter & GetSearchFilter() const
void SetSearchCriteria(const UserSearchCriteria &value)
void SetSearchFilter(UserSearchFilter &&value)
void SetNextToken(const Aws::String &value)
AWS_CONNECT_API Aws::String SerializePayload() const override
SearchUsersRequest & WithSearchCriteria(const UserSearchCriteria &value)
SearchUsersRequest & WithInstanceId(Aws::String &&value)
const UserSearchCriteria & GetSearchCriteria() const
const Aws::String & GetInstanceId() const
SearchUsersRequest & WithInstanceId(const char *value)
SearchUsersRequest & WithNextToken(Aws::String &&value)
void SetInstanceId(const Aws::String &value)
SearchUsersRequest & WithNextToken(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
void SetSearchCriteria(UserSearchCriteria &&value)
SearchUsersRequest & WithNextToken(const char *value)
const Aws::String & GetNextToken() const
SearchUsersRequest & WithSearchFilter(UserSearchFilter &&value)
SearchUsersRequest & WithMaxResults(int value)
SearchUsersRequest & WithSearchFilter(const UserSearchFilter &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String