AWS SDK for C++  0.14.3
AWS SDK for C++
UpdateAccountPasswordPolicyRequest.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
16 #include <aws/iam/IAM_EXPORTS.h>
17 #include <aws/iam/IAMRequest.h>
18 
19 namespace Aws
20 {
21 namespace IAM
22 {
23 namespace Model
24 {
25 
29  {
30  public:
32  Aws::String SerializePayload() const override;
33 
38  inline int GetMinimumPasswordLength() const{ return m_minimumPasswordLength; }
39 
44  inline void SetMinimumPasswordLength(int value) { m_minimumPasswordLengthHasBeenSet = true; m_minimumPasswordLength = value; }
45 
50  inline UpdateAccountPasswordPolicyRequest& WithMinimumPasswordLength(int value) { SetMinimumPasswordLength(value); return *this;}
51 
57  inline bool GetRequireSymbols() const{ return m_requireSymbols; }
58 
64  inline void SetRequireSymbols(bool value) { m_requireSymbolsHasBeenSet = true; m_requireSymbols = value; }
65 
71  inline UpdateAccountPasswordPolicyRequest& WithRequireSymbols(bool value) { SetRequireSymbols(value); return *this;}
72 
77  inline bool GetRequireNumbers() const{ return m_requireNumbers; }
78 
83  inline void SetRequireNumbers(bool value) { m_requireNumbersHasBeenSet = true; m_requireNumbers = value; }
84 
89  inline UpdateAccountPasswordPolicyRequest& WithRequireNumbers(bool value) { SetRequireNumbers(value); return *this;}
90 
96  inline bool GetRequireUppercaseCharacters() const{ return m_requireUppercaseCharacters; }
97 
103  inline void SetRequireUppercaseCharacters(bool value) { m_requireUppercaseCharactersHasBeenSet = true; m_requireUppercaseCharacters = value; }
104 
110  inline UpdateAccountPasswordPolicyRequest& WithRequireUppercaseCharacters(bool value) { SetRequireUppercaseCharacters(value); return *this;}
111 
117  inline bool GetRequireLowercaseCharacters() const{ return m_requireLowercaseCharacters; }
118 
124  inline void SetRequireLowercaseCharacters(bool value) { m_requireLowercaseCharactersHasBeenSet = true; m_requireLowercaseCharacters = value; }
125 
131  inline UpdateAccountPasswordPolicyRequest& WithRequireLowercaseCharacters(bool value) { SetRequireLowercaseCharacters(value); return *this;}
132 
140  inline bool GetAllowUsersToChangePassword() const{ return m_allowUsersToChangePassword; }
141 
149  inline void SetAllowUsersToChangePassword(bool value) { m_allowUsersToChangePasswordHasBeenSet = true; m_allowUsersToChangePassword = value; }
150 
158  inline UpdateAccountPasswordPolicyRequest& WithAllowUsersToChangePassword(bool value) { SetAllowUsersToChangePassword(value); return *this;}
159 
164  inline int GetMaxPasswordAge() const{ return m_maxPasswordAge; }
165 
170  inline void SetMaxPasswordAge(int value) { m_maxPasswordAgeHasBeenSet = true; m_maxPasswordAge = value; }
171 
176  inline UpdateAccountPasswordPolicyRequest& WithMaxPasswordAge(int value) { SetMaxPasswordAge(value); return *this;}
177 
183  inline int GetPasswordReusePrevention() const{ return m_passwordReusePrevention; }
184 
190  inline void SetPasswordReusePrevention(int value) { m_passwordReusePreventionHasBeenSet = true; m_passwordReusePrevention = value; }
191 
197  inline UpdateAccountPasswordPolicyRequest& WithPasswordReusePrevention(int value) { SetPasswordReusePrevention(value); return *this;}
198 
203  inline bool GetHardExpiry() const{ return m_hardExpiry; }
204 
209  inline void SetHardExpiry(bool value) { m_hardExpiryHasBeenSet = true; m_hardExpiry = value; }
210 
215  inline UpdateAccountPasswordPolicyRequest& WithHardExpiry(bool value) { SetHardExpiry(value); return *this;}
216 
217  private:
218  int m_minimumPasswordLength;
219  bool m_minimumPasswordLengthHasBeenSet;
220  bool m_requireSymbols;
221  bool m_requireSymbolsHasBeenSet;
222  bool m_requireNumbers;
223  bool m_requireNumbersHasBeenSet;
224  bool m_requireUppercaseCharacters;
225  bool m_requireUppercaseCharactersHasBeenSet;
226  bool m_requireLowercaseCharacters;
227  bool m_requireLowercaseCharactersHasBeenSet;
228  bool m_allowUsersToChangePassword;
229  bool m_allowUsersToChangePasswordHasBeenSet;
230  int m_maxPasswordAge;
231  bool m_maxPasswordAgeHasBeenSet;
232  int m_passwordReusePrevention;
233  bool m_passwordReusePreventionHasBeenSet;
234  bool m_hardExpiry;
235  bool m_hardExpiryHasBeenSet;
236  };
237 
238 } // namespace Model
239 } // namespace IAM
240 } // 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:37
UpdateAccountPasswordPolicyRequest & WithHardExpiry(bool value)
UpdateAccountPasswordPolicyRequest & WithRequireSymbols(bool value)
UpdateAccountPasswordPolicyRequest & WithRequireLowercaseCharacters(bool value)
JSON (JavaScript Object Notation).
UpdateAccountPasswordPolicyRequest & WithMinimumPasswordLength(int value)