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

Specifies information about the master user of the domain.

See * Also:

AWS * API Reference

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

The Amazon Resource Name (ARN) for the master user.

*/ inline const Aws::String& GetMasterUserArn() const{ return m_masterUserArn; } /** *

The Amazon Resource Name (ARN) for the master user.

*/ inline bool MasterUserArnHasBeenSet() const { return m_masterUserArnHasBeenSet; } /** *

The Amazon Resource Name (ARN) for the master user.

*/ inline void SetMasterUserArn(const Aws::String& value) { m_masterUserArnHasBeenSet = true; m_masterUserArn = value; } /** *

The Amazon Resource Name (ARN) for the master user.

*/ inline void SetMasterUserArn(Aws::String&& value) { m_masterUserArnHasBeenSet = true; m_masterUserArn = std::move(value); } /** *

The Amazon Resource Name (ARN) for the master user.

*/ inline void SetMasterUserArn(const char* value) { m_masterUserArnHasBeenSet = true; m_masterUserArn.assign(value); } /** *

The Amazon Resource Name (ARN) for the master user.

*/ inline AwsOpenSearchServiceDomainMasterUserOptionsDetails& WithMasterUserArn(const Aws::String& value) { SetMasterUserArn(value); return *this;} /** *

The Amazon Resource Name (ARN) for the master user.

*/ inline AwsOpenSearchServiceDomainMasterUserOptionsDetails& WithMasterUserArn(Aws::String&& value) { SetMasterUserArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) for the master user.

*/ inline AwsOpenSearchServiceDomainMasterUserOptionsDetails& WithMasterUserArn(const char* value) { SetMasterUserArn(value); return *this;} /** *

The username for the master user.

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

The username for the master user.

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

The username for the master user.

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

The username for the master user.

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

The username for the master user.

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

The username for the master user.

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

The username for the master user.

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

The username for the master user.

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

The password for the master user.

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

The password for the master user.

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

The password for the master user.

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

The password for the master user.

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

The password for the master user.

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

The password for the master user.

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

The password for the master user.

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

The password for the master user.

*/ inline AwsOpenSearchServiceDomainMasterUserOptionsDetails& 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 SecurityHub } // namespace Aws