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

Denotes the user's authentication properties, such as whether it requires a * password to authenticate. Used in output responses.

See Also:

* AWS * API Reference

*/ class Authentication { public: AWS_MEMORYDB_API Authentication(); AWS_MEMORYDB_API Authentication(Aws::Utils::Json::JsonView jsonValue); AWS_MEMORYDB_API Authentication& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_MEMORYDB_API Aws::Utils::Json::JsonValue Jsonize() 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 MemoryDB } // namespace Aws