AWS SDK for C++

AWS SDK for C++ Version 1.11.745

Loading...
Searching...
No Matches
LdapServerMetadataInput.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/mq/MQ_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace MQ {
21namespace Model {
22
31 public:
32 AWS_MQ_API LdapServerMetadataInput() = default;
36
38
42 inline const Aws::Vector<Aws::String>& GetHosts() const { return m_hosts; }
43 inline bool HostsHasBeenSet() const { return m_hostsHasBeenSet; }
44 template <typename HostsT = Aws::Vector<Aws::String>>
45 void SetHosts(HostsT&& value) {
46 m_hostsHasBeenSet = true;
47 m_hosts = std::forward<HostsT>(value);
48 }
49 template <typename HostsT = Aws::Vector<Aws::String>>
51 SetHosts(std::forward<HostsT>(value));
52 return *this;
53 }
54 template <typename HostsT = Aws::String>
56 m_hostsHasBeenSet = true;
57 m_hosts.emplace_back(std::forward<HostsT>(value));
58 return *this;
59 }
61
63
69 inline const Aws::String& GetRoleBase() const { return m_roleBase; }
70 inline bool RoleBaseHasBeenSet() const { return m_roleBaseHasBeenSet; }
71 template <typename RoleBaseT = Aws::String>
72 void SetRoleBase(RoleBaseT&& value) {
73 m_roleBaseHasBeenSet = true;
74 m_roleBase = std::forward<RoleBaseT>(value);
75 }
76 template <typename RoleBaseT = Aws::String>
78 SetRoleBase(std::forward<RoleBaseT>(value));
79 return *this;
80 }
82
84
88 inline const Aws::String& GetRoleName() const { return m_roleName; }
89 inline bool RoleNameHasBeenSet() const { return m_roleNameHasBeenSet; }
90 template <typename RoleNameT = Aws::String>
91 void SetRoleName(RoleNameT&& value) {
92 m_roleNameHasBeenSet = true;
93 m_roleName = std::forward<RoleNameT>(value);
94 }
95 template <typename RoleNameT = Aws::String>
97 SetRoleName(std::forward<RoleNameT>(value));
98 return *this;
99 }
101
103
113 inline const Aws::String& GetRoleSearchMatching() const { return m_roleSearchMatching; }
114 inline bool RoleSearchMatchingHasBeenSet() const { return m_roleSearchMatchingHasBeenSet; }
115 template <typename RoleSearchMatchingT = Aws::String>
116 void SetRoleSearchMatching(RoleSearchMatchingT&& value) {
117 m_roleSearchMatchingHasBeenSet = true;
118 m_roleSearchMatching = std::forward<RoleSearchMatchingT>(value);
119 }
120 template <typename RoleSearchMatchingT = Aws::String>
121 LdapServerMetadataInput& WithRoleSearchMatching(RoleSearchMatchingT&& value) {
122 SetRoleSearchMatching(std::forward<RoleSearchMatchingT>(value));
123 return *this;
124 }
126
128
132 inline bool GetRoleSearchSubtree() const { return m_roleSearchSubtree; }
133 inline bool RoleSearchSubtreeHasBeenSet() const { return m_roleSearchSubtreeHasBeenSet; }
134 inline void SetRoleSearchSubtree(bool value) {
135 m_roleSearchSubtreeHasBeenSet = true;
136 m_roleSearchSubtree = value;
137 }
140 return *this;
141 }
143
145
151 inline const Aws::String& GetServiceAccountPassword() const { return m_serviceAccountPassword; }
152 inline bool ServiceAccountPasswordHasBeenSet() const { return m_serviceAccountPasswordHasBeenSet; }
153 template <typename ServiceAccountPasswordT = Aws::String>
154 void SetServiceAccountPassword(ServiceAccountPasswordT&& value) {
155 m_serviceAccountPasswordHasBeenSet = true;
156 m_serviceAccountPassword = std::forward<ServiceAccountPasswordT>(value);
157 }
158 template <typename ServiceAccountPasswordT = Aws::String>
159 LdapServerMetadataInput& WithServiceAccountPassword(ServiceAccountPasswordT&& value) {
160 SetServiceAccountPassword(std::forward<ServiceAccountPasswordT>(value));
161 return *this;
162 }
164
166
172 inline const Aws::String& GetServiceAccountUsername() const { return m_serviceAccountUsername; }
173 inline bool ServiceAccountUsernameHasBeenSet() const { return m_serviceAccountUsernameHasBeenSet; }
174 template <typename ServiceAccountUsernameT = Aws::String>
175 void SetServiceAccountUsername(ServiceAccountUsernameT&& value) {
176 m_serviceAccountUsernameHasBeenSet = true;
177 m_serviceAccountUsername = std::forward<ServiceAccountUsernameT>(value);
178 }
179 template <typename ServiceAccountUsernameT = Aws::String>
180 LdapServerMetadataInput& WithServiceAccountUsername(ServiceAccountUsernameT&& value) {
181 SetServiceAccountUsername(std::forward<ServiceAccountUsernameT>(value));
182 return *this;
183 }
185
187
196 inline const Aws::String& GetUserBase() const { return m_userBase; }
197 inline bool UserBaseHasBeenSet() const { return m_userBaseHasBeenSet; }
198 template <typename UserBaseT = Aws::String>
199 void SetUserBase(UserBaseT&& value) {
200 m_userBaseHasBeenSet = true;
201 m_userBase = std::forward<UserBaseT>(value);
202 }
203 template <typename UserBaseT = Aws::String>
205 SetUserBase(std::forward<UserBaseT>(value));
206 return *this;
207 }
209
211
214 inline const Aws::String& GetUserRoleName() const { return m_userRoleName; }
215 inline bool UserRoleNameHasBeenSet() const { return m_userRoleNameHasBeenSet; }
216 template <typename UserRoleNameT = Aws::String>
217 void SetUserRoleName(UserRoleNameT&& value) {
218 m_userRoleNameHasBeenSet = true;
219 m_userRoleName = std::forward<UserRoleNameT>(value);
220 }
221 template <typename UserRoleNameT = Aws::String>
223 SetUserRoleName(std::forward<UserRoleNameT>(value));
224 return *this;
225 }
227
229
238 inline const Aws::String& GetUserSearchMatching() const { return m_userSearchMatching; }
239 inline bool UserSearchMatchingHasBeenSet() const { return m_userSearchMatchingHasBeenSet; }
240 template <typename UserSearchMatchingT = Aws::String>
241 void SetUserSearchMatching(UserSearchMatchingT&& value) {
242 m_userSearchMatchingHasBeenSet = true;
243 m_userSearchMatching = std::forward<UserSearchMatchingT>(value);
244 }
245 template <typename UserSearchMatchingT = Aws::String>
246 LdapServerMetadataInput& WithUserSearchMatching(UserSearchMatchingT&& value) {
247 SetUserSearchMatching(std::forward<UserSearchMatchingT>(value));
248 return *this;
249 }
251
253
257 inline bool GetUserSearchSubtree() const { return m_userSearchSubtree; }
258 inline bool UserSearchSubtreeHasBeenSet() const { return m_userSearchSubtreeHasBeenSet; }
259 inline void SetUserSearchSubtree(bool value) {
260 m_userSearchSubtreeHasBeenSet = true;
261 m_userSearchSubtree = value;
262 }
265 return *this;
266 }
268 private:
270
271 Aws::String m_roleBase;
272
273 Aws::String m_roleName;
274
275 Aws::String m_roleSearchMatching;
276
277 bool m_roleSearchSubtree{false};
278
279 Aws::String m_serviceAccountPassword;
280
281 Aws::String m_serviceAccountUsername;
282
283 Aws::String m_userBase;
284
285 Aws::String m_userRoleName;
286
287 Aws::String m_userSearchMatching;
288
289 bool m_userSearchSubtree{false};
290 bool m_hostsHasBeenSet = false;
291 bool m_roleBaseHasBeenSet = false;
292 bool m_roleNameHasBeenSet = false;
293 bool m_roleSearchMatchingHasBeenSet = false;
294 bool m_roleSearchSubtreeHasBeenSet = false;
295 bool m_serviceAccountPasswordHasBeenSet = false;
296 bool m_serviceAccountUsernameHasBeenSet = false;
297 bool m_userBaseHasBeenSet = false;
298 bool m_userRoleNameHasBeenSet = false;
299 bool m_userSearchMatchingHasBeenSet = false;
300 bool m_userSearchSubtreeHasBeenSet = false;
301};
302
303} // namespace Model
304} // namespace MQ
305} // namespace Aws
LdapServerMetadataInput & WithServiceAccountPassword(ServiceAccountPasswordT &&value)
LdapServerMetadataInput & AddHosts(HostsT &&value)
void SetRoleSearchMatching(RoleSearchMatchingT &&value)
LdapServerMetadataInput & WithRoleSearchSubtree(bool value)
const Aws::String & GetServiceAccountPassword() const
LdapServerMetadataInput & WithHosts(HostsT &&value)
void SetServiceAccountUsername(ServiceAccountUsernameT &&value)
AWS_MQ_API LdapServerMetadataInput()=default
LdapServerMetadataInput & WithRoleName(RoleNameT &&value)
const Aws::String & GetServiceAccountUsername() const
AWS_MQ_API Aws::Utils::Json::JsonValue Jsonize() const
LdapServerMetadataInput & WithServiceAccountUsername(ServiceAccountUsernameT &&value)
LdapServerMetadataInput & WithUserRoleName(UserRoleNameT &&value)
AWS_MQ_API LdapServerMetadataInput & operator=(Aws::Utils::Json::JsonView jsonValue)
LdapServerMetadataInput & WithUserSearchMatching(UserSearchMatchingT &&value)
LdapServerMetadataInput & WithUserBase(UserBaseT &&value)
AWS_MQ_API LdapServerMetadataInput(Aws::Utils::Json::JsonView jsonValue)
void SetUserSearchMatching(UserSearchMatchingT &&value)
LdapServerMetadataInput & WithRoleSearchMatching(RoleSearchMatchingT &&value)
LdapServerMetadataInput & WithRoleBase(RoleBaseT &&value)
LdapServerMetadataInput & WithUserSearchSubtree(bool value)
void SetServiceAccountPassword(ServiceAccountPasswordT &&value)
const Aws::Vector< Aws::String > & GetHosts() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue