/** * 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 username and password that you use to connect to cluster * endpoints.

See Also:

AWS * API Reference

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

The username associated with the temporary credentials that you use to * connect to cluster endpoints.

*/ inline const Aws::String& GetUsername() const{ return m_username; } /** *

The username associated with the temporary credentials that you use to * connect to cluster endpoints.

*/ inline bool UsernameHasBeenSet() const { return m_usernameHasBeenSet; } /** *

The username associated with the temporary credentials that you use to * connect to cluster endpoints.

*/ inline void SetUsername(const Aws::String& value) { m_usernameHasBeenSet = true; m_username = value; } /** *

The username associated with the temporary credentials that you use to * connect to cluster endpoints.

*/ inline void SetUsername(Aws::String&& value) { m_usernameHasBeenSet = true; m_username = std::move(value); } /** *

The username associated with the temporary credentials that you use to * connect to cluster endpoints.

*/ inline void SetUsername(const char* value) { m_usernameHasBeenSet = true; m_username.assign(value); } /** *

The username associated with the temporary credentials that you use to * connect to cluster endpoints.

*/ inline UsernamePassword& WithUsername(const Aws::String& value) { SetUsername(value); return *this;} /** *

The username associated with the temporary credentials that you use to * connect to cluster endpoints.

*/ inline UsernamePassword& WithUsername(Aws::String&& value) { SetUsername(std::move(value)); return *this;} /** *

The username associated with the temporary credentials that you use to * connect to cluster endpoints.

*/ inline UsernamePassword& WithUsername(const char* value) { SetUsername(value); return *this;} /** *

The password associated with the temporary credentials that you use to * connect to cluster endpoints.

*/ inline const Aws::String& GetPassword() const{ return m_password; } /** *

The password associated with the temporary credentials that you use to * connect to cluster endpoints.

*/ inline bool PasswordHasBeenSet() const { return m_passwordHasBeenSet; } /** *

The password associated with the temporary credentials that you use to * connect to cluster endpoints.

*/ inline void SetPassword(const Aws::String& value) { m_passwordHasBeenSet = true; m_password = value; } /** *

The password associated with the temporary credentials that you use to * connect to cluster endpoints.

*/ inline void SetPassword(Aws::String&& value) { m_passwordHasBeenSet = true; m_password = std::move(value); } /** *

The password associated with the temporary credentials that you use to * connect to cluster endpoints.

*/ inline void SetPassword(const char* value) { m_passwordHasBeenSet = true; m_password.assign(value); } /** *

The password associated with the temporary credentials that you use to * connect to cluster endpoints.

*/ inline UsernamePassword& WithPassword(const Aws::String& value) { SetPassword(value); return *this;} /** *

The password associated with the temporary credentials that you use to * connect to cluster endpoints.

*/ inline UsernamePassword& WithPassword(Aws::String&& value) { SetPassword(std::move(value)); return *this;} /** *

The password associated with the temporary credentials that you use to * connect to cluster endpoints.

*/ inline UsernamePassword& WithPassword(const char* value) { SetPassword(value); return *this;} private: Aws::String m_username; bool m_usernameHasBeenSet = false; Aws::String m_password; bool m_passwordHasBeenSet = false; }; } // namespace Model } // namespace EMR } // namespace Aws