AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
ListUsersRequest.h
1
6#pragma once
7#include <aws/chime/ChimeRequest.h>
8#include <aws/chime/Chime_EXPORTS.h>
9#include <aws/chime/model/UserType.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Http {
16class URI;
17} // namespace Http
18namespace Chime {
19namespace Model {
20
24 public:
25 AWS_CHIME_API ListUsersRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "ListUsers"; }
32
33 AWS_CHIME_API Aws::String SerializePayload() const override;
34
35 AWS_CHIME_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
36
38
41 inline const Aws::String& GetAccountId() const { return m_accountId; }
42 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
43 template <typename AccountIdT = Aws::String>
44 void SetAccountId(AccountIdT&& value) {
45 m_accountIdHasBeenSet = true;
46 m_accountId = std::forward<AccountIdT>(value);
47 }
48 template <typename AccountIdT = Aws::String>
49 ListUsersRequest& WithAccountId(AccountIdT&& value) {
50 SetAccountId(std::forward<AccountIdT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetUserEmail() const { return m_userEmail; }
60 inline bool UserEmailHasBeenSet() const { return m_userEmailHasBeenSet; }
61 template <typename UserEmailT = Aws::String>
62 void SetUserEmail(UserEmailT&& value) {
63 m_userEmailHasBeenSet = true;
64 m_userEmail = std::forward<UserEmailT>(value);
65 }
66 template <typename UserEmailT = Aws::String>
67 ListUsersRequest& WithUserEmail(UserEmailT&& value) {
68 SetUserEmail(std::forward<UserEmailT>(value));
69 return *this;
70 }
72
74
77 inline UserType GetUserType() const { return m_userType; }
78 inline bool UserTypeHasBeenSet() const { return m_userTypeHasBeenSet; }
79 inline void SetUserType(UserType value) {
80 m_userTypeHasBeenSet = true;
81 m_userType = value;
82 }
84 SetUserType(value);
85 return *this;
86 }
88
90
94 inline int GetMaxResults() const { return m_maxResults; }
95 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
96 inline void SetMaxResults(int value) {
97 m_maxResultsHasBeenSet = true;
98 m_maxResults = value;
99 }
100 inline ListUsersRequest& WithMaxResults(int value) {
101 SetMaxResults(value);
102 return *this;
103 }
105
107
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>
118 ListUsersRequest& WithNextToken(NextTokenT&& value) {
119 SetNextToken(std::forward<NextTokenT>(value));
120 return *this;
121 }
123 private:
124 Aws::String m_accountId;
125
126 Aws::String m_userEmail;
127
128 UserType m_userType{UserType::NOT_SET};
129
130 int m_maxResults{0};
131
132 Aws::String m_nextToken;
133 bool m_accountIdHasBeenSet = false;
134 bool m_userEmailHasBeenSet = false;
135 bool m_userTypeHasBeenSet = false;
136 bool m_maxResultsHasBeenSet = false;
137 bool m_nextTokenHasBeenSet = false;
138};
139
140} // namespace Model
141} // namespace Chime
142} // namespace Aws
ListUsersRequest & WithAccountId(AccountIdT &&value)
void SetAccountId(AccountIdT &&value)
ListUsersRequest & WithNextToken(NextTokenT &&value)
const Aws::String & GetUserEmail() const
ListUsersRequest & WithUserEmail(UserEmailT &&value)
virtual const char * GetServiceRequestName() const override
ListUsersRequest & WithUserType(UserType value)
AWS_CHIME_API Aws::String SerializePayload() const override
AWS_CHIME_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
const Aws::String & GetAccountId() const
AWS_CHIME_API ListUsersRequest()=default
const Aws::String & GetNextToken() const
ListUsersRequest & WithMaxResults(int value)
void SetUserEmail(UserEmailT &&value)
void SetNextToken(NextTokenT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String