/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace AmplifyBackend { namespace Model { /** *

The password policy configuration for the backend to your Amplify * project.

See Also:

AWS * API Reference

*/ class CreateBackendAuthPasswordPolicyConfig { public: AWS_AMPLIFYBACKEND_API CreateBackendAuthPasswordPolicyConfig(); AWS_AMPLIFYBACKEND_API CreateBackendAuthPasswordPolicyConfig(Aws::Utils::Json::JsonView jsonValue); AWS_AMPLIFYBACKEND_API CreateBackendAuthPasswordPolicyConfig& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_AMPLIFYBACKEND_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

Additional constraints for the password used to access the backend of your * Amplify project.

*/ inline const Aws::Vector& GetAdditionalConstraints() const{ return m_additionalConstraints; } /** *

Additional constraints for the password used to access the backend of your * Amplify project.

*/ inline bool AdditionalConstraintsHasBeenSet() const { return m_additionalConstraintsHasBeenSet; } /** *

Additional constraints for the password used to access the backend of your * Amplify project.

*/ inline void SetAdditionalConstraints(const Aws::Vector& value) { m_additionalConstraintsHasBeenSet = true; m_additionalConstraints = value; } /** *

Additional constraints for the password used to access the backend of your * Amplify project.

*/ inline void SetAdditionalConstraints(Aws::Vector&& value) { m_additionalConstraintsHasBeenSet = true; m_additionalConstraints = std::move(value); } /** *

Additional constraints for the password used to access the backend of your * Amplify project.

*/ inline CreateBackendAuthPasswordPolicyConfig& WithAdditionalConstraints(const Aws::Vector& value) { SetAdditionalConstraints(value); return *this;} /** *

Additional constraints for the password used to access the backend of your * Amplify project.

*/ inline CreateBackendAuthPasswordPolicyConfig& WithAdditionalConstraints(Aws::Vector&& value) { SetAdditionalConstraints(std::move(value)); return *this;} /** *

Additional constraints for the password used to access the backend of your * Amplify project.

*/ inline CreateBackendAuthPasswordPolicyConfig& AddAdditionalConstraints(const AdditionalConstraintsElement& value) { m_additionalConstraintsHasBeenSet = true; m_additionalConstraints.push_back(value); return *this; } /** *

Additional constraints for the password used to access the backend of your * Amplify project.

*/ inline CreateBackendAuthPasswordPolicyConfig& AddAdditionalConstraints(AdditionalConstraintsElement&& value) { m_additionalConstraintsHasBeenSet = true; m_additionalConstraints.push_back(std::move(value)); return *this; } /** *

The minimum length of the password used to access the backend of your Amplify * project.

*/ inline double GetMinimumLength() const{ return m_minimumLength; } /** *

The minimum length of the password used to access the backend of your Amplify * project.

*/ inline bool MinimumLengthHasBeenSet() const { return m_minimumLengthHasBeenSet; } /** *

The minimum length of the password used to access the backend of your Amplify * project.

*/ inline void SetMinimumLength(double value) { m_minimumLengthHasBeenSet = true; m_minimumLength = value; } /** *

The minimum length of the password used to access the backend of your Amplify * project.

*/ inline CreateBackendAuthPasswordPolicyConfig& WithMinimumLength(double value) { SetMinimumLength(value); return *this;} private: Aws::Vector m_additionalConstraints; bool m_additionalConstraintsHasBeenSet = false; double m_minimumLength; bool m_minimumLengthHasBeenSet = false; }; } // namespace Model } // namespace AmplifyBackend } // namespace Aws