AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
PasswordPolicy.h
1
6#pragma once
7#include <aws/iam/IAM_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9
10namespace Aws
11{
12namespace Utils
13{
14namespace Xml
15{
16 class XmlNode;
17} // namespace Xml
18} // namespace Utils
19namespace IAM
20{
21namespace Model
22{
23
33 {
34 public:
35 AWS_IAM_API PasswordPolicy() = default;
36 AWS_IAM_API PasswordPolicy(const Aws::Utils::Xml::XmlNode& xmlNode);
38
39 AWS_IAM_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
40 AWS_IAM_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
41
42
44
47 inline int GetMinimumPasswordLength() const { return m_minimumPasswordLength; }
48 inline bool MinimumPasswordLengthHasBeenSet() const { return m_minimumPasswordLengthHasBeenSet; }
49 inline void SetMinimumPasswordLength(int value) { m_minimumPasswordLengthHasBeenSet = true; m_minimumPasswordLength = value; }
50 inline PasswordPolicy& WithMinimumPasswordLength(int value) { SetMinimumPasswordLength(value); return *this;}
52
54
58 inline bool GetRequireSymbols() const { return m_requireSymbols; }
59 inline bool RequireSymbolsHasBeenSet() const { return m_requireSymbolsHasBeenSet; }
60 inline void SetRequireSymbols(bool value) { m_requireSymbolsHasBeenSet = true; m_requireSymbols = value; }
61 inline PasswordPolicy& WithRequireSymbols(bool value) { SetRequireSymbols(value); return *this;}
63
65
69 inline bool GetRequireNumbers() const { return m_requireNumbers; }
70 inline bool RequireNumbersHasBeenSet() const { return m_requireNumbersHasBeenSet; }
71 inline void SetRequireNumbers(bool value) { m_requireNumbersHasBeenSet = true; m_requireNumbers = value; }
72 inline PasswordPolicy& WithRequireNumbers(bool value) { SetRequireNumbers(value); return *this;}
74
76
80 inline bool GetRequireUppercaseCharacters() const { return m_requireUppercaseCharacters; }
81 inline bool RequireUppercaseCharactersHasBeenSet() const { return m_requireUppercaseCharactersHasBeenSet; }
82 inline void SetRequireUppercaseCharacters(bool value) { m_requireUppercaseCharactersHasBeenSet = true; m_requireUppercaseCharacters = value; }
85
87
91 inline bool GetRequireLowercaseCharacters() const { return m_requireLowercaseCharacters; }
92 inline bool RequireLowercaseCharactersHasBeenSet() const { return m_requireLowercaseCharactersHasBeenSet; }
93 inline void SetRequireLowercaseCharacters(bool value) { m_requireLowercaseCharactersHasBeenSet = true; m_requireLowercaseCharacters = value; }
96
98
105 inline bool GetAllowUsersToChangePassword() const { return m_allowUsersToChangePassword; }
106 inline bool AllowUsersToChangePasswordHasBeenSet() const { return m_allowUsersToChangePasswordHasBeenSet; }
107 inline void SetAllowUsersToChangePassword(bool value) { m_allowUsersToChangePasswordHasBeenSet = true; m_allowUsersToChangePassword = value; }
110
112
117 inline bool GetExpirePasswords() const { return m_expirePasswords; }
118 inline bool ExpirePasswordsHasBeenSet() const { return m_expirePasswordsHasBeenSet; }
119 inline void SetExpirePasswords(bool value) { m_expirePasswordsHasBeenSet = true; m_expirePasswords = value; }
120 inline PasswordPolicy& WithExpirePasswords(bool value) { SetExpirePasswords(value); return *this;}
122
124
127 inline int GetMaxPasswordAge() const { return m_maxPasswordAge; }
128 inline bool MaxPasswordAgeHasBeenSet() const { return m_maxPasswordAgeHasBeenSet; }
129 inline void SetMaxPasswordAge(int value) { m_maxPasswordAgeHasBeenSet = true; m_maxPasswordAge = value; }
130 inline PasswordPolicy& WithMaxPasswordAge(int value) { SetMaxPasswordAge(value); return *this;}
132
134
138 inline int GetPasswordReusePrevention() const { return m_passwordReusePrevention; }
139 inline bool PasswordReusePreventionHasBeenSet() const { return m_passwordReusePreventionHasBeenSet; }
140 inline void SetPasswordReusePrevention(int value) { m_passwordReusePreventionHasBeenSet = true; m_passwordReusePrevention = value; }
143
145
152 inline bool GetHardExpiry() const { return m_hardExpiry; }
153 inline bool HardExpiryHasBeenSet() const { return m_hardExpiryHasBeenSet; }
154 inline void SetHardExpiry(bool value) { m_hardExpiryHasBeenSet = true; m_hardExpiry = value; }
155 inline PasswordPolicy& WithHardExpiry(bool value) { SetHardExpiry(value); return *this;}
157 private:
158
159 int m_minimumPasswordLength{0};
160 bool m_minimumPasswordLengthHasBeenSet = false;
161
162 bool m_requireSymbols{false};
163 bool m_requireSymbolsHasBeenSet = false;
164
165 bool m_requireNumbers{false};
166 bool m_requireNumbersHasBeenSet = false;
167
168 bool m_requireUppercaseCharacters{false};
169 bool m_requireUppercaseCharactersHasBeenSet = false;
170
171 bool m_requireLowercaseCharacters{false};
172 bool m_requireLowercaseCharactersHasBeenSet = false;
173
174 bool m_allowUsersToChangePassword{false};
175 bool m_allowUsersToChangePasswordHasBeenSet = false;
176
177 bool m_expirePasswords{false};
178 bool m_expirePasswordsHasBeenSet = false;
179
180 int m_maxPasswordAge{0};
181 bool m_maxPasswordAgeHasBeenSet = false;
182
183 int m_passwordReusePrevention{0};
184 bool m_passwordReusePreventionHasBeenSet = false;
185
186 bool m_hardExpiry{false};
187 bool m_hardExpiryHasBeenSet = false;
188 };
189
190} // namespace Model
191} // namespace IAM
192} // namespace Aws
void SetRequireLowercaseCharacters(bool value)
bool RequireLowercaseCharactersHasBeenSet() const
void SetAllowUsersToChangePassword(bool value)
void SetRequireUppercaseCharacters(bool value)
bool RequireUppercaseCharactersHasBeenSet() const
PasswordPolicy & WithHardExpiry(bool value)
AWS_IAM_API PasswordPolicy & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
bool AllowUsersToChangePasswordHasBeenSet() const
PasswordPolicy & WithRequireLowercaseCharacters(bool value)
PasswordPolicy & WithAllowUsersToChangePassword(bool value)
void SetMinimumPasswordLength(int value)
AWS_IAM_API void OutputToStream(Aws::OStream &oStream, const char *location) const
PasswordPolicy & WithRequireNumbers(bool value)
PasswordPolicy & WithRequireUppercaseCharacters(bool value)
PasswordPolicy & WithPasswordReusePrevention(int value)
PasswordPolicy & WithMinimumPasswordLength(int value)
PasswordPolicy & WithMaxPasswordAge(int value)
void SetPasswordReusePrevention(int value)
PasswordPolicy & WithRequireSymbols(bool value)
AWS_IAM_API PasswordPolicy(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_IAM_API PasswordPolicy()=default
PasswordPolicy & WithExpirePasswords(bool value)
AWS_IAM_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
std::basic_ostream< char, std::char_traits< char > > OStream