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

The credentials that you can use to connect to cluster endpoints. Credentials * consist of a username and a password.

See Also:

AWS * API Reference

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

The username and password that you use to connect to cluster endpoints.

*/ inline const UsernamePassword& GetUsernamePassword() const{ return m_usernamePassword; } /** *

The username and password that you use to connect to cluster endpoints.

*/ inline bool UsernamePasswordHasBeenSet() const { return m_usernamePasswordHasBeenSet; } /** *

The username and password that you use to connect to cluster endpoints.

*/ inline void SetUsernamePassword(const UsernamePassword& value) { m_usernamePasswordHasBeenSet = true; m_usernamePassword = value; } /** *

The username and password that you use to connect to cluster endpoints.

*/ inline void SetUsernamePassword(UsernamePassword&& value) { m_usernamePasswordHasBeenSet = true; m_usernamePassword = std::move(value); } /** *

The username and password that you use to connect to cluster endpoints.

*/ inline Credentials& WithUsernamePassword(const UsernamePassword& value) { SetUsernamePassword(value); return *this;} /** *

The username and password that you use to connect to cluster endpoints.

*/ inline Credentials& WithUsernamePassword(UsernamePassword&& value) { SetUsernamePassword(std::move(value)); return *this;} private: UsernamePassword m_usernamePassword; bool m_usernamePasswordHasBeenSet = false; }; } // namespace Model } // namespace EMR } // namespace Aws