/** * 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 OpenSearchService { namespace Model { /** *

Credentials for the master user for a domain.

See Also:

AWS * API Reference

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

Amazon Resource Name (ARN) for the master user. Only specify if * InternalUserDatabaseEnabled is false.

*/ inline const Aws::String& GetMasterUserARN() const{ return m_masterUserARN; } /** *

Amazon Resource Name (ARN) for the master user. Only specify if * InternalUserDatabaseEnabled is false.

*/ inline bool MasterUserARNHasBeenSet() const { return m_masterUserARNHasBeenSet; } /** *

Amazon Resource Name (ARN) for the master user. Only specify if * InternalUserDatabaseEnabled is false.

*/ inline void SetMasterUserARN(const Aws::String& value) { m_masterUserARNHasBeenSet = true; m_masterUserARN = value; } /** *

Amazon Resource Name (ARN) for the master user. Only specify if * InternalUserDatabaseEnabled is false.

*/ inline void SetMasterUserARN(Aws::String&& value) { m_masterUserARNHasBeenSet = true; m_masterUserARN = std::move(value); } /** *

Amazon Resource Name (ARN) for the master user. Only specify if * InternalUserDatabaseEnabled is false.

*/ inline void SetMasterUserARN(const char* value) { m_masterUserARNHasBeenSet = true; m_masterUserARN.assign(value); } /** *

Amazon Resource Name (ARN) for the master user. Only specify if * InternalUserDatabaseEnabled is false.

*/ inline MasterUserOptions& WithMasterUserARN(const Aws::String& value) { SetMasterUserARN(value); return *this;} /** *

Amazon Resource Name (ARN) for the master user. Only specify if * InternalUserDatabaseEnabled is false.

*/ inline MasterUserOptions& WithMasterUserARN(Aws::String&& value) { SetMasterUserARN(std::move(value)); return *this;} /** *

Amazon Resource Name (ARN) for the master user. Only specify if * InternalUserDatabaseEnabled is false.

*/ inline MasterUserOptions& WithMasterUserARN(const char* value) { SetMasterUserARN(value); return *this;} /** *

User name for the master user. Only specify if * InternalUserDatabaseEnabled is true.

*/ inline const Aws::String& GetMasterUserName() const{ return m_masterUserName; } /** *

User name for the master user. Only specify if * InternalUserDatabaseEnabled is true.

*/ inline bool MasterUserNameHasBeenSet() const { return m_masterUserNameHasBeenSet; } /** *

User name for the master user. Only specify if * InternalUserDatabaseEnabled is true.

*/ inline void SetMasterUserName(const Aws::String& value) { m_masterUserNameHasBeenSet = true; m_masterUserName = value; } /** *

User name for the master user. Only specify if * InternalUserDatabaseEnabled is true.

*/ inline void SetMasterUserName(Aws::String&& value) { m_masterUserNameHasBeenSet = true; m_masterUserName = std::move(value); } /** *

User name for the master user. Only specify if * InternalUserDatabaseEnabled is true.

*/ inline void SetMasterUserName(const char* value) { m_masterUserNameHasBeenSet = true; m_masterUserName.assign(value); } /** *

User name for the master user. Only specify if * InternalUserDatabaseEnabled is true.

*/ inline MasterUserOptions& WithMasterUserName(const Aws::String& value) { SetMasterUserName(value); return *this;} /** *

User name for the master user. Only specify if * InternalUserDatabaseEnabled is true.

*/ inline MasterUserOptions& WithMasterUserName(Aws::String&& value) { SetMasterUserName(std::move(value)); return *this;} /** *

User name for the master user. Only specify if * InternalUserDatabaseEnabled is true.

*/ inline MasterUserOptions& WithMasterUserName(const char* value) { SetMasterUserName(value); return *this;} /** *

Password for the master user. Only specify if * InternalUserDatabaseEnabled is true.

*/ inline const Aws::String& GetMasterUserPassword() const{ return m_masterUserPassword; } /** *

Password for the master user. Only specify if * InternalUserDatabaseEnabled is true.

*/ inline bool MasterUserPasswordHasBeenSet() const { return m_masterUserPasswordHasBeenSet; } /** *

Password for the master user. Only specify if * InternalUserDatabaseEnabled is true.

*/ inline void SetMasterUserPassword(const Aws::String& value) { m_masterUserPasswordHasBeenSet = true; m_masterUserPassword = value; } /** *

Password for the master user. Only specify if * InternalUserDatabaseEnabled is true.

*/ inline void SetMasterUserPassword(Aws::String&& value) { m_masterUserPasswordHasBeenSet = true; m_masterUserPassword = std::move(value); } /** *

Password for the master user. Only specify if * InternalUserDatabaseEnabled is true.

*/ inline void SetMasterUserPassword(const char* value) { m_masterUserPasswordHasBeenSet = true; m_masterUserPassword.assign(value); } /** *

Password for the master user. Only specify if * InternalUserDatabaseEnabled is true.

*/ inline MasterUserOptions& WithMasterUserPassword(const Aws::String& value) { SetMasterUserPassword(value); return *this;} /** *

Password for the master user. Only specify if * InternalUserDatabaseEnabled is true.

*/ inline MasterUserOptions& WithMasterUserPassword(Aws::String&& value) { SetMasterUserPassword(std::move(value)); return *this;} /** *

Password for the master user. Only specify if * InternalUserDatabaseEnabled is true.

*/ inline MasterUserOptions& WithMasterUserPassword(const char* value) { SetMasterUserPassword(value); return *this;} private: Aws::String m_masterUserARN; bool m_masterUserARNHasBeenSet = false; Aws::String m_masterUserName; bool m_masterUserNameHasBeenSet = false; Aws::String m_masterUserPassword; bool m_masterUserPasswordHasBeenSet = false; }; } // namespace Model } // namespace OpenSearchService } // namespace Aws