/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #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 AuthenticationMode { public: AWS_MEMORYDB_API AuthenticationMode(); AWS_MEMORYDB_API AuthenticationMode(Aws::Utils::Json::JsonView jsonValue); AWS_MEMORYDB_API AuthenticationMode& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_MEMORYDB_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

Indicates whether the user requires a password to authenticate. All * newly-created users require a password.

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

Indicates whether the user requires a password to authenticate. All * newly-created users require a password.

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

Indicates whether the user requires a password to authenticate. All * newly-created users require a password.

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

Indicates whether the user requires a password to authenticate. All * newly-created users require a password.

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

Indicates whether the user requires a password to authenticate. All * newly-created users require a password.

*/ inline AuthenticationMode& WithType(const InputAuthenticationType& value) { SetType(value); return *this;} /** *

Indicates whether the user requires a password to authenticate. All * newly-created users require a password.

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

The password(s) used for authentication

*/ inline const Aws::Vector& GetPasswords() const{ return m_passwords; } /** *

The password(s) used for authentication

*/ inline bool PasswordsHasBeenSet() const { return m_passwordsHasBeenSet; } /** *

The password(s) used for authentication

*/ inline void SetPasswords(const Aws::Vector& value) { m_passwordsHasBeenSet = true; m_passwords = value; } /** *

The password(s) used for authentication

*/ inline void SetPasswords(Aws::Vector&& value) { m_passwordsHasBeenSet = true; m_passwords = std::move(value); } /** *

The password(s) used for authentication

*/ inline AuthenticationMode& WithPasswords(const Aws::Vector& value) { SetPasswords(value); return *this;} /** *

The password(s) used for authentication

*/ inline AuthenticationMode& WithPasswords(Aws::Vector&& value) { SetPasswords(std::move(value)); return *this;} /** *

The password(s) used for authentication

*/ inline AuthenticationMode& AddPasswords(const Aws::String& value) { m_passwordsHasBeenSet = true; m_passwords.push_back(value); return *this; } /** *

The password(s) used for authentication

*/ inline AuthenticationMode& AddPasswords(Aws::String&& value) { m_passwordsHasBeenSet = true; m_passwords.push_back(std::move(value)); return *this; } /** *

The password(s) used for authentication

*/ inline AuthenticationMode& AddPasswords(const char* value) { m_passwordsHasBeenSet = true; m_passwords.push_back(value); return *this; } private: InputAuthenticationType m_type; bool m_typeHasBeenSet = false; Aws::Vector m_passwords; bool m_passwordsHasBeenSet = false; }; } // namespace Model } // namespace MemoryDB } // namespace Aws