AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UpdateAccountPasswordPolicyRequest.h
1
6#pragma once
7#include <aws/iam/IAM_EXPORTS.h>
8#include <aws/iam/IAMRequest.h>
9
10namespace Aws
11{
12namespace IAM
13{
14namespace Model
15{
16
20 {
21 public:
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "UpdateAccountPasswordPolicy"; }
29
30 AWS_IAM_API Aws::String SerializePayload() const override;
31
32 protected:
33 AWS_IAM_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
34
35 public:
36
38
43 inline int GetMinimumPasswordLength() const{ return m_minimumPasswordLength; }
44 inline bool MinimumPasswordLengthHasBeenSet() const { return m_minimumPasswordLengthHasBeenSet; }
45 inline void SetMinimumPasswordLength(int value) { m_minimumPasswordLengthHasBeenSet = true; m_minimumPasswordLength = value; }
48
50
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 UpdateAccountPasswordPolicyRequest& WithRequireSymbols(bool value) { SetRequireSymbols(value); return *this;}
62
64
70 inline bool GetRequireNumbers() const{ return m_requireNumbers; }
71 inline bool RequireNumbersHasBeenSet() const { return m_requireNumbersHasBeenSet; }
72 inline void SetRequireNumbers(bool value) { m_requireNumbersHasBeenSet = true; m_requireNumbers = value; }
73 inline UpdateAccountPasswordPolicyRequest& WithRequireNumbers(bool value) { SetRequireNumbers(value); return *this;}
75
77
84 inline bool GetRequireUppercaseCharacters() const{ return m_requireUppercaseCharacters; }
85 inline bool RequireUppercaseCharactersHasBeenSet() const { return m_requireUppercaseCharactersHasBeenSet; }
86 inline void SetRequireUppercaseCharacters(bool value) { m_requireUppercaseCharactersHasBeenSet = true; m_requireUppercaseCharacters = value; }
89
91
98 inline bool GetRequireLowercaseCharacters() const{ return m_requireLowercaseCharacters; }
99 inline bool RequireLowercaseCharactersHasBeenSet() const { return m_requireLowercaseCharactersHasBeenSet; }
100 inline void SetRequireLowercaseCharacters(bool value) { m_requireLowercaseCharactersHasBeenSet = true; m_requireLowercaseCharacters = value; }
103
105
114 inline bool GetAllowUsersToChangePassword() const{ return m_allowUsersToChangePassword; }
115 inline bool AllowUsersToChangePasswordHasBeenSet() const { return m_allowUsersToChangePasswordHasBeenSet; }
116 inline void SetAllowUsersToChangePassword(bool value) { m_allowUsersToChangePasswordHasBeenSet = true; m_allowUsersToChangePassword = value; }
119
121
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; }
131
133
139 inline int GetPasswordReusePrevention() const{ return m_passwordReusePrevention; }
140 inline bool PasswordReusePreventionHasBeenSet() const { return m_passwordReusePreventionHasBeenSet; }
141 inline void SetPasswordReusePrevention(int value) { m_passwordReusePreventionHasBeenSet = true; m_passwordReusePrevention = value; }
144
146
162 inline bool GetHardExpiry() const{ return m_hardExpiry; }
163 inline bool HardExpiryHasBeenSet() const { return m_hardExpiryHasBeenSet; }
164 inline void SetHardExpiry(bool value) { m_hardExpiryHasBeenSet = true; m_hardExpiry = value; }
165 inline UpdateAccountPasswordPolicyRequest& WithHardExpiry(bool value) { SetHardExpiry(value); return *this;}
167 private:
168
169 int m_minimumPasswordLength;
170 bool m_minimumPasswordLengthHasBeenSet = false;
171
172 bool m_requireSymbols;
173 bool m_requireSymbolsHasBeenSet = false;
174
175 bool m_requireNumbers;
176 bool m_requireNumbersHasBeenSet = false;
177
178 bool m_requireUppercaseCharacters;
179 bool m_requireUppercaseCharactersHasBeenSet = false;
180
181 bool m_requireLowercaseCharacters;
182 bool m_requireLowercaseCharactersHasBeenSet = false;
183
184 bool m_allowUsersToChangePassword;
185 bool m_allowUsersToChangePasswordHasBeenSet = false;
186
187 int m_maxPasswordAge;
188 bool m_maxPasswordAgeHasBeenSet = false;
189
190 int m_passwordReusePrevention;
191 bool m_passwordReusePreventionHasBeenSet = false;
192
193 bool m_hardExpiry;
194 bool m_hardExpiryHasBeenSet = false;
195 };
196
197} // namespace Model
198} // namespace IAM
199} // namespace Aws
UpdateAccountPasswordPolicyRequest & WithMaxPasswordAge(int value)
UpdateAccountPasswordPolicyRequest & WithRequireLowercaseCharacters(bool value)
UpdateAccountPasswordPolicyRequest & WithRequireNumbers(bool value)
AWS_IAM_API Aws::String SerializePayload() const override
UpdateAccountPasswordPolicyRequest & WithRequireUppercaseCharacters(bool value)
UpdateAccountPasswordPolicyRequest & WithMinimumPasswordLength(int value)
UpdateAccountPasswordPolicyRequest & WithRequireSymbols(bool value)
AWS_IAM_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
UpdateAccountPasswordPolicyRequest & WithHardExpiry(bool value)
UpdateAccountPasswordPolicyRequest & WithPasswordReusePrevention(int value)
UpdateAccountPasswordPolicyRequest & WithAllowUsersToChangePassword(bool value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String