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

Credentials for the master user: username and password, ARN, or * both.

See Also:

AWS * API Reference

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

ARN for the master user (if IAM is enabled).

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

ARN for the master user (if IAM is enabled).

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

ARN for the master user (if IAM is enabled).

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

ARN for the master user (if IAM is enabled).

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

ARN for the master user (if IAM is enabled).

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

ARN for the master user (if IAM is enabled).

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

ARN for the master user (if IAM is enabled).

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

ARN for the master user (if IAM is enabled).

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

The master user's username, which is stored in the Amazon Elasticsearch * Service domain's internal database.

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

The master user's username, which is stored in the Amazon Elasticsearch * Service domain's internal database.

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

The master user's username, which is stored in the Amazon Elasticsearch * Service domain's internal database.

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

The master user's username, which is stored in the Amazon Elasticsearch * Service domain's internal database.

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

The master user's username, which is stored in the Amazon Elasticsearch * Service domain's internal database.

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

The master user's username, which is stored in the Amazon Elasticsearch * Service domain's internal database.

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

The master user's username, which is stored in the Amazon Elasticsearch * Service domain's internal database.

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

The master user's username, which is stored in the Amazon Elasticsearch * Service domain's internal database.

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

The master user's password, which is stored in the Amazon Elasticsearch * Service domain's internal database.

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

The master user's password, which is stored in the Amazon Elasticsearch * Service domain's internal database.

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

The master user's password, which is stored in the Amazon Elasticsearch * Service domain's internal database.

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

The master user's password, which is stored in the Amazon Elasticsearch * Service domain's internal database.

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

The master user's password, which is stored in the Amazon Elasticsearch * Service domain's internal database.

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

The master user's password, which is stored in the Amazon Elasticsearch * Service domain's internal database.

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

The master user's password, which is stored in the Amazon Elasticsearch * Service domain's internal database.

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

The master user's password, which is stored in the Amazon Elasticsearch * Service domain's internal database.

*/ 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 ElasticsearchService } // namespace Aws