AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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
32 {
33 public:
34 AWS_IAM_API PasswordPolicy();
35 AWS_IAM_API PasswordPolicy(const Aws::Utils::Xml::XmlNode& xmlNode);
37
38 AWS_IAM_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
39 AWS_IAM_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
40
41
43
46 inline int GetMinimumPasswordLength() const{ return m_minimumPasswordLength; }
47 inline bool MinimumPasswordLengthHasBeenSet() const { return m_minimumPasswordLengthHasBeenSet; }
48 inline void SetMinimumPasswordLength(int value) { m_minimumPasswordLengthHasBeenSet = true; m_minimumPasswordLength = value; }
49 inline PasswordPolicy& WithMinimumPasswordLength(int value) { SetMinimumPasswordLength(value); return *this;}
51
53
57 inline bool GetRequireSymbols() const{ return m_requireSymbols; }
58 inline bool RequireSymbolsHasBeenSet() const { return m_requireSymbolsHasBeenSet; }
59 inline void SetRequireSymbols(bool value) { m_requireSymbolsHasBeenSet = true; m_requireSymbols = value; }
60 inline PasswordPolicy& WithRequireSymbols(bool value) { SetRequireSymbols(value); return *this;}
62
64
68 inline bool GetRequireNumbers() const{ return m_requireNumbers; }
69 inline bool RequireNumbersHasBeenSet() const { return m_requireNumbersHasBeenSet; }
70 inline void SetRequireNumbers(bool value) { m_requireNumbersHasBeenSet = true; m_requireNumbers = value; }
71 inline PasswordPolicy& WithRequireNumbers(bool value) { SetRequireNumbers(value); return *this;}
73
75
79 inline bool GetRequireUppercaseCharacters() const{ return m_requireUppercaseCharacters; }
80 inline bool RequireUppercaseCharactersHasBeenSet() const { return m_requireUppercaseCharactersHasBeenSet; }
81 inline void SetRequireUppercaseCharacters(bool value) { m_requireUppercaseCharactersHasBeenSet = true; m_requireUppercaseCharacters = value; }
84
86
90 inline bool GetRequireLowercaseCharacters() const{ return m_requireLowercaseCharacters; }
91 inline bool RequireLowercaseCharactersHasBeenSet() const { return m_requireLowercaseCharactersHasBeenSet; }
92 inline void SetRequireLowercaseCharacters(bool value) { m_requireLowercaseCharactersHasBeenSet = true; m_requireLowercaseCharacters = value; }
95
97
104 inline bool GetAllowUsersToChangePassword() const{ return m_allowUsersToChangePassword; }
105 inline bool AllowUsersToChangePasswordHasBeenSet() const { return m_allowUsersToChangePasswordHasBeenSet; }
106 inline void SetAllowUsersToChangePassword(bool value) { m_allowUsersToChangePasswordHasBeenSet = true; m_allowUsersToChangePassword = value; }
109
111
116 inline bool GetExpirePasswords() const{ return m_expirePasswords; }
117 inline bool ExpirePasswordsHasBeenSet() const { return m_expirePasswordsHasBeenSet; }
118 inline void SetExpirePasswords(bool value) { m_expirePasswordsHasBeenSet = true; m_expirePasswords = value; }
119 inline PasswordPolicy& WithExpirePasswords(bool value) { SetExpirePasswords(value); return *this;}
121
123
126 inline int GetMaxPasswordAge() const{ return m_maxPasswordAge; }
127 inline bool MaxPasswordAgeHasBeenSet() const { return m_maxPasswordAgeHasBeenSet; }
128 inline void SetMaxPasswordAge(int value) { m_maxPasswordAgeHasBeenSet = true; m_maxPasswordAge = value; }
129 inline PasswordPolicy& WithMaxPasswordAge(int value) { SetMaxPasswordAge(value); return *this;}
131
133
137 inline int GetPasswordReusePrevention() const{ return m_passwordReusePrevention; }
138 inline bool PasswordReusePreventionHasBeenSet() const { return m_passwordReusePreventionHasBeenSet; }
139 inline void SetPasswordReusePrevention(int value) { m_passwordReusePreventionHasBeenSet = true; m_passwordReusePrevention = value; }
142
144
151 inline bool GetHardExpiry() const{ return m_hardExpiry; }
152 inline bool HardExpiryHasBeenSet() const { return m_hardExpiryHasBeenSet; }
153 inline void SetHardExpiry(bool value) { m_hardExpiryHasBeenSet = true; m_hardExpiry = value; }
154 inline PasswordPolicy& WithHardExpiry(bool value) { SetHardExpiry(value); return *this;}
156 private:
157
158 int m_minimumPasswordLength;
159 bool m_minimumPasswordLengthHasBeenSet = false;
160
161 bool m_requireSymbols;
162 bool m_requireSymbolsHasBeenSet = false;
163
164 bool m_requireNumbers;
165 bool m_requireNumbersHasBeenSet = false;
166
167 bool m_requireUppercaseCharacters;
168 bool m_requireUppercaseCharactersHasBeenSet = false;
169
170 bool m_requireLowercaseCharacters;
171 bool m_requireLowercaseCharactersHasBeenSet = false;
172
173 bool m_allowUsersToChangePassword;
174 bool m_allowUsersToChangePasswordHasBeenSet = false;
175
176 bool m_expirePasswords;
177 bool m_expirePasswordsHasBeenSet = false;
178
179 int m_maxPasswordAge;
180 bool m_maxPasswordAgeHasBeenSet = false;
181
182 int m_passwordReusePrevention;
183 bool m_passwordReusePreventionHasBeenSet = false;
184
185 bool m_hardExpiry;
186 bool m_hardExpiryHasBeenSet = false;
187 };
188
189} // namespace Model
190} // namespace IAM
191} // 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)
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