AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
LdapServerMetadataInput.h
1
6#pragma once
7#include <aws/mq/MQ_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace MQ
23{
24namespace Model
25{
26
35 {
36 public:
37 AWS_MQ_API LdapServerMetadataInput() = default;
41
42
44
48 inline const Aws::Vector<Aws::String>& GetHosts() const { return m_hosts; }
49 inline bool HostsHasBeenSet() const { return m_hostsHasBeenSet; }
50 template<typename HostsT = Aws::Vector<Aws::String>>
51 void SetHosts(HostsT&& value) { m_hostsHasBeenSet = true; m_hosts = std::forward<HostsT>(value); }
52 template<typename HostsT = Aws::Vector<Aws::String>>
53 LdapServerMetadataInput& WithHosts(HostsT&& value) { SetHosts(std::forward<HostsT>(value)); return *this;}
54 template<typename HostsT = Aws::String>
55 LdapServerMetadataInput& AddHosts(HostsT&& value) { m_hostsHasBeenSet = true; m_hosts.emplace_back(std::forward<HostsT>(value)); return *this; }
57
59
65 inline const Aws::String& GetRoleBase() const { return m_roleBase; }
66 inline bool RoleBaseHasBeenSet() const { return m_roleBaseHasBeenSet; }
67 template<typename RoleBaseT = Aws::String>
68 void SetRoleBase(RoleBaseT&& value) { m_roleBaseHasBeenSet = true; m_roleBase = std::forward<RoleBaseT>(value); }
69 template<typename RoleBaseT = Aws::String>
70 LdapServerMetadataInput& WithRoleBase(RoleBaseT&& value) { SetRoleBase(std::forward<RoleBaseT>(value)); return *this;}
72
74
78 inline const Aws::String& GetRoleName() const { return m_roleName; }
79 inline bool RoleNameHasBeenSet() const { return m_roleNameHasBeenSet; }
80 template<typename RoleNameT = Aws::String>
81 void SetRoleName(RoleNameT&& value) { m_roleNameHasBeenSet = true; m_roleName = std::forward<RoleNameT>(value); }
82 template<typename RoleNameT = Aws::String>
83 LdapServerMetadataInput& WithRoleName(RoleNameT&& value) { SetRoleName(std::forward<RoleNameT>(value)); return *this;}
85
87
97 inline const Aws::String& GetRoleSearchMatching() const { return m_roleSearchMatching; }
98 inline bool RoleSearchMatchingHasBeenSet() const { return m_roleSearchMatchingHasBeenSet; }
99 template<typename RoleSearchMatchingT = Aws::String>
100 void SetRoleSearchMatching(RoleSearchMatchingT&& value) { m_roleSearchMatchingHasBeenSet = true; m_roleSearchMatching = std::forward<RoleSearchMatchingT>(value); }
101 template<typename RoleSearchMatchingT = Aws::String>
102 LdapServerMetadataInput& WithRoleSearchMatching(RoleSearchMatchingT&& value) { SetRoleSearchMatching(std::forward<RoleSearchMatchingT>(value)); return *this;}
104
106
110 inline bool GetRoleSearchSubtree() const { return m_roleSearchSubtree; }
111 inline bool RoleSearchSubtreeHasBeenSet() const { return m_roleSearchSubtreeHasBeenSet; }
112 inline void SetRoleSearchSubtree(bool value) { m_roleSearchSubtreeHasBeenSet = true; m_roleSearchSubtree = value; }
113 inline LdapServerMetadataInput& WithRoleSearchSubtree(bool value) { SetRoleSearchSubtree(value); return *this;}
115
117
123 inline const Aws::String& GetServiceAccountPassword() const { return m_serviceAccountPassword; }
124 inline bool ServiceAccountPasswordHasBeenSet() const { return m_serviceAccountPasswordHasBeenSet; }
125 template<typename ServiceAccountPasswordT = Aws::String>
126 void SetServiceAccountPassword(ServiceAccountPasswordT&& value) { m_serviceAccountPasswordHasBeenSet = true; m_serviceAccountPassword = std::forward<ServiceAccountPasswordT>(value); }
127 template<typename ServiceAccountPasswordT = Aws::String>
128 LdapServerMetadataInput& WithServiceAccountPassword(ServiceAccountPasswordT&& value) { SetServiceAccountPassword(std::forward<ServiceAccountPasswordT>(value)); return *this;}
130
132
138 inline const Aws::String& GetServiceAccountUsername() const { return m_serviceAccountUsername; }
139 inline bool ServiceAccountUsernameHasBeenSet() const { return m_serviceAccountUsernameHasBeenSet; }
140 template<typename ServiceAccountUsernameT = Aws::String>
141 void SetServiceAccountUsername(ServiceAccountUsernameT&& value) { m_serviceAccountUsernameHasBeenSet = true; m_serviceAccountUsername = std::forward<ServiceAccountUsernameT>(value); }
142 template<typename ServiceAccountUsernameT = Aws::String>
143 LdapServerMetadataInput& WithServiceAccountUsername(ServiceAccountUsernameT&& value) { SetServiceAccountUsername(std::forward<ServiceAccountUsernameT>(value)); return *this;}
145
147
156 inline const Aws::String& GetUserBase() const { return m_userBase; }
157 inline bool UserBaseHasBeenSet() const { return m_userBaseHasBeenSet; }
158 template<typename UserBaseT = Aws::String>
159 void SetUserBase(UserBaseT&& value) { m_userBaseHasBeenSet = true; m_userBase = std::forward<UserBaseT>(value); }
160 template<typename UserBaseT = Aws::String>
161 LdapServerMetadataInput& WithUserBase(UserBaseT&& value) { SetUserBase(std::forward<UserBaseT>(value)); return *this;}
163
165
168 inline const Aws::String& GetUserRoleName() const { return m_userRoleName; }
169 inline bool UserRoleNameHasBeenSet() const { return m_userRoleNameHasBeenSet; }
170 template<typename UserRoleNameT = Aws::String>
171 void SetUserRoleName(UserRoleNameT&& value) { m_userRoleNameHasBeenSet = true; m_userRoleName = std::forward<UserRoleNameT>(value); }
172 template<typename UserRoleNameT = Aws::String>
173 LdapServerMetadataInput& WithUserRoleName(UserRoleNameT&& value) { SetUserRoleName(std::forward<UserRoleNameT>(value)); return *this;}
175
177
186 inline const Aws::String& GetUserSearchMatching() const { return m_userSearchMatching; }
187 inline bool UserSearchMatchingHasBeenSet() const { return m_userSearchMatchingHasBeenSet; }
188 template<typename UserSearchMatchingT = Aws::String>
189 void SetUserSearchMatching(UserSearchMatchingT&& value) { m_userSearchMatchingHasBeenSet = true; m_userSearchMatching = std::forward<UserSearchMatchingT>(value); }
190 template<typename UserSearchMatchingT = Aws::String>
191 LdapServerMetadataInput& WithUserSearchMatching(UserSearchMatchingT&& value) { SetUserSearchMatching(std::forward<UserSearchMatchingT>(value)); return *this;}
193
195
199 inline bool GetUserSearchSubtree() const { return m_userSearchSubtree; }
200 inline bool UserSearchSubtreeHasBeenSet() const { return m_userSearchSubtreeHasBeenSet; }
201 inline void SetUserSearchSubtree(bool value) { m_userSearchSubtreeHasBeenSet = true; m_userSearchSubtree = value; }
202 inline LdapServerMetadataInput& WithUserSearchSubtree(bool value) { SetUserSearchSubtree(value); return *this;}
204 private:
205
207 bool m_hostsHasBeenSet = false;
208
209 Aws::String m_roleBase;
210 bool m_roleBaseHasBeenSet = false;
211
212 Aws::String m_roleName;
213 bool m_roleNameHasBeenSet = false;
214
215 Aws::String m_roleSearchMatching;
216 bool m_roleSearchMatchingHasBeenSet = false;
217
218 bool m_roleSearchSubtree{false};
219 bool m_roleSearchSubtreeHasBeenSet = false;
220
221 Aws::String m_serviceAccountPassword;
222 bool m_serviceAccountPasswordHasBeenSet = false;
223
224 Aws::String m_serviceAccountUsername;
225 bool m_serviceAccountUsernameHasBeenSet = false;
226
227 Aws::String m_userBase;
228 bool m_userBaseHasBeenSet = false;
229
230 Aws::String m_userRoleName;
231 bool m_userRoleNameHasBeenSet = false;
232
233 Aws::String m_userSearchMatching;
234 bool m_userSearchMatchingHasBeenSet = false;
235
236 bool m_userSearchSubtree{false};
237 bool m_userSearchSubtreeHasBeenSet = false;
238 };
239
240} // namespace Model
241} // namespace MQ
242} // 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)
const Aws::String & GetRoleSearchMatching() const
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