AWS SDK for C++  1.8.71
AWS SDK for C++
UpdateAccountPasswordPolicyRequest.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/iam/IAM_EXPORTS.h>
8 #include <aws/iam/IAMRequest.h>
9 
10 namespace Aws
11 {
12 namespace IAM
13 {
14 namespace 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::String SerializePayload() const override;
31 
32  protected:
33  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
34 
35  public:
36 
42  inline int GetMinimumPasswordLength() const{ return m_minimumPasswordLength; }
43 
49  inline bool MinimumPasswordLengthHasBeenSet() const { return m_minimumPasswordLengthHasBeenSet; }
50 
56  inline void SetMinimumPasswordLength(int value) { m_minimumPasswordLengthHasBeenSet = true; m_minimumPasswordLength = value; }
57 
63  inline UpdateAccountPasswordPolicyRequest& WithMinimumPasswordLength(int value) { SetMinimumPasswordLength(value); return *this;}
64 
65 
73  inline bool GetRequireSymbols() const{ return m_requireSymbols; }
74 
82  inline bool RequireSymbolsHasBeenSet() const { return m_requireSymbolsHasBeenSet; }
83 
91  inline void SetRequireSymbols(bool value) { m_requireSymbolsHasBeenSet = true; m_requireSymbols = value; }
92 
100  inline UpdateAccountPasswordPolicyRequest& WithRequireSymbols(bool value) { SetRequireSymbols(value); return *this;}
101 
102 
109  inline bool GetRequireNumbers() const{ return m_requireNumbers; }
110 
117  inline bool RequireNumbersHasBeenSet() const { return m_requireNumbersHasBeenSet; }
118 
125  inline void SetRequireNumbers(bool value) { m_requireNumbersHasBeenSet = true; m_requireNumbers = value; }
126 
133  inline UpdateAccountPasswordPolicyRequest& WithRequireNumbers(bool value) { SetRequireNumbers(value); return *this;}
134 
135 
143  inline bool GetRequireUppercaseCharacters() const{ return m_requireUppercaseCharacters; }
144 
152  inline bool RequireUppercaseCharactersHasBeenSet() const { return m_requireUppercaseCharactersHasBeenSet; }
153 
161  inline void SetRequireUppercaseCharacters(bool value) { m_requireUppercaseCharactersHasBeenSet = true; m_requireUppercaseCharacters = value; }
162 
170  inline UpdateAccountPasswordPolicyRequest& WithRequireUppercaseCharacters(bool value) { SetRequireUppercaseCharacters(value); return *this;}
171 
172 
180  inline bool GetRequireLowercaseCharacters() const{ return m_requireLowercaseCharacters; }
181 
189  inline bool RequireLowercaseCharactersHasBeenSet() const { return m_requireLowercaseCharactersHasBeenSet; }
190 
198  inline void SetRequireLowercaseCharacters(bool value) { m_requireLowercaseCharactersHasBeenSet = true; m_requireLowercaseCharacters = value; }
199 
207  inline UpdateAccountPasswordPolicyRequest& WithRequireLowercaseCharacters(bool value) { SetRequireLowercaseCharacters(value); return *this;}
208 
209 
219  inline bool GetAllowUsersToChangePassword() const{ return m_allowUsersToChangePassword; }
220 
230  inline bool AllowUsersToChangePasswordHasBeenSet() const { return m_allowUsersToChangePasswordHasBeenSet; }
231 
241  inline void SetAllowUsersToChangePassword(bool value) { m_allowUsersToChangePasswordHasBeenSet = true; m_allowUsersToChangePassword = value; }
242 
252  inline UpdateAccountPasswordPolicyRequest& WithAllowUsersToChangePassword(bool value) { SetAllowUsersToChangePassword(value); return *this;}
253 
254 
260  inline int GetMaxPasswordAge() const{ return m_maxPasswordAge; }
261 
267  inline bool MaxPasswordAgeHasBeenSet() const { return m_maxPasswordAgeHasBeenSet; }
268 
274  inline void SetMaxPasswordAge(int value) { m_maxPasswordAgeHasBeenSet = true; m_maxPasswordAge = value; }
275 
281  inline UpdateAccountPasswordPolicyRequest& WithMaxPasswordAge(int value) { SetMaxPasswordAge(value); return *this;}
282 
283 
290  inline int GetPasswordReusePrevention() const{ return m_passwordReusePrevention; }
291 
298  inline bool PasswordReusePreventionHasBeenSet() const { return m_passwordReusePreventionHasBeenSet; }
299 
306  inline void SetPasswordReusePrevention(int value) { m_passwordReusePreventionHasBeenSet = true; m_passwordReusePrevention = value; }
307 
314  inline UpdateAccountPasswordPolicyRequest& WithPasswordReusePrevention(int value) { SetPasswordReusePrevention(value); return *this;}
315 
316 
325  inline bool GetHardExpiry() const{ return m_hardExpiry; }
326 
335  inline bool HardExpiryHasBeenSet() const { return m_hardExpiryHasBeenSet; }
336 
345  inline void SetHardExpiry(bool value) { m_hardExpiryHasBeenSet = true; m_hardExpiry = value; }
346 
355  inline UpdateAccountPasswordPolicyRequest& WithHardExpiry(bool value) { SetHardExpiry(value); return *this;}
356 
357  private:
358 
359  int m_minimumPasswordLength;
360  bool m_minimumPasswordLengthHasBeenSet;
361 
362  bool m_requireSymbols;
363  bool m_requireSymbolsHasBeenSet;
364 
365  bool m_requireNumbers;
366  bool m_requireNumbersHasBeenSet;
367 
368  bool m_requireUppercaseCharacters;
369  bool m_requireUppercaseCharactersHasBeenSet;
370 
371  bool m_requireLowercaseCharacters;
372  bool m_requireLowercaseCharactersHasBeenSet;
373 
374  bool m_allowUsersToChangePassword;
375  bool m_allowUsersToChangePasswordHasBeenSet;
376 
377  int m_maxPasswordAge;
378  bool m_maxPasswordAgeHasBeenSet;
379 
380  int m_passwordReusePrevention;
381  bool m_passwordReusePreventionHasBeenSet;
382 
383  bool m_hardExpiry;
384  bool m_hardExpiryHasBeenSet;
385  };
386 
387 } // namespace Model
388 } // namespace IAM
389 } // namespace Aws
UpdateAccountPasswordPolicyRequest & WithPasswordReusePrevention(int value)
UpdateAccountPasswordPolicyRequest & WithAllowUsersToChangePassword(bool value)
UpdateAccountPasswordPolicyRequest & WithRequireNumbers(bool value)
UpdateAccountPasswordPolicyRequest & WithRequireUppercaseCharacters(bool value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
UpdateAccountPasswordPolicyRequest & WithMaxPasswordAge(int value)
#define AWS_IAM_API
Definition: IAM_EXPORTS.h:28
UpdateAccountPasswordPolicyRequest & WithHardExpiry(bool value)
UpdateAccountPasswordPolicyRequest & WithRequireSymbols(bool value)
UpdateAccountPasswordPolicyRequest & WithRequireLowercaseCharacters(bool value)
UpdateAccountPasswordPolicyRequest & WithMinimumPasswordLength(int value)