/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Indicates whether the user requires a password to authenticate.See
* Also:
AWS
* API Reference
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