/** * 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 Xml { class XmlNode; } // namespace Xml } // namespace Utils namespace ElastiCache { namespace Model { /** *

Indicates whether the user requires a password to authenticate.

See * Also:

AWS * API Reference

*/ class Authentication { public: AWS_ELASTICACHE_API Authentication(); AWS_ELASTICACHE_API Authentication(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_ELASTICACHE_API Authentication& operator=(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_ELASTICACHE_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const; AWS_ELASTICACHE_API void OutputToStream(Aws::OStream& oStream, const char* location) const; /** *

Indicates whether the user requires a password to authenticate.

*/ inline const AuthenticationType& GetType() const{ return m_type; } /** *

Indicates whether the user requires a password to authenticate.

*/ inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; } /** *

Indicates whether the user requires a password to authenticate.

*/ inline void SetType(const AuthenticationType& value) { m_typeHasBeenSet = true; m_type = value; } /** *

Indicates whether the user requires a password to authenticate.

*/ inline void SetType(AuthenticationType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); } /** *

Indicates whether the user requires a password to authenticate.

*/ inline Authentication& WithType(const AuthenticationType& value) { SetType(value); return *this;} /** *

Indicates whether the user requires a password to authenticate.

*/ inline Authentication& WithType(AuthenticationType&& value) { SetType(std::move(value)); return *this;} /** *

The number of passwords belonging to the user. The maximum is two.

*/ inline int GetPasswordCount() const{ return m_passwordCount; } /** *

The number of passwords belonging to the user. The maximum is two.

*/ inline bool PasswordCountHasBeenSet() const { return m_passwordCountHasBeenSet; } /** *

The number of passwords belonging to the user. The maximum is two.

*/ inline void SetPasswordCount(int value) { m_passwordCountHasBeenSet = true; m_passwordCount = value; } /** *

The number of passwords belonging to the user. The maximum is two.

*/ inline Authentication& WithPasswordCount(int value) { SetPasswordCount(value); return *this;} private: AuthenticationType m_type; bool m_typeHasBeenSet = false; int m_passwordCount; bool m_passwordCountHasBeenSet = false; }; } // namespace Model } // namespace ElastiCache } // namespace Aws