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

Contains the authorization parameters for the connection if Basic is * specified as the authorization type.

See Also:

AWS * API Reference

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

The user name to use for Basic authorization.

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

The user name to use for Basic authorization.

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

The user name to use for Basic authorization.

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

The user name to use for Basic authorization.

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

The user name to use for Basic authorization.

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

The user name to use for Basic authorization.

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

The user name to use for Basic authorization.

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

The user name to use for Basic authorization.

*/ inline ConnectionBasicAuthResponseParameters& WithUsername(const char* value) { SetUsername(value); return *this;} private: Aws::String m_username; bool m_usernameHasBeenSet = false; }; } // namespace Model } // namespace EventBridge } // namespace Aws