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

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

See Also:

AWS * API Reference

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

The name of the header to use for the APIKeyValue used for * authorization.

*/ inline const Aws::String& GetApiKeyName() const{ return m_apiKeyName; } /** *

The name of the header to use for the APIKeyValue used for * authorization.

*/ inline bool ApiKeyNameHasBeenSet() const { return m_apiKeyNameHasBeenSet; } /** *

The name of the header to use for the APIKeyValue used for * authorization.

*/ inline void SetApiKeyName(const Aws::String& value) { m_apiKeyNameHasBeenSet = true; m_apiKeyName = value; } /** *

The name of the header to use for the APIKeyValue used for * authorization.

*/ inline void SetApiKeyName(Aws::String&& value) { m_apiKeyNameHasBeenSet = true; m_apiKeyName = std::move(value); } /** *

The name of the header to use for the APIKeyValue used for * authorization.

*/ inline void SetApiKeyName(const char* value) { m_apiKeyNameHasBeenSet = true; m_apiKeyName.assign(value); } /** *

The name of the header to use for the APIKeyValue used for * authorization.

*/ inline ConnectionApiKeyAuthResponseParameters& WithApiKeyName(const Aws::String& value) { SetApiKeyName(value); return *this;} /** *

The name of the header to use for the APIKeyValue used for * authorization.

*/ inline ConnectionApiKeyAuthResponseParameters& WithApiKeyName(Aws::String&& value) { SetApiKeyName(std::move(value)); return *this;} /** *

The name of the header to use for the APIKeyValue used for * authorization.

*/ inline ConnectionApiKeyAuthResponseParameters& WithApiKeyName(const char* value) { SetApiKeyName(value); return *this;} private: Aws::String m_apiKeyName; bool m_apiKeyNameHasBeenSet = false; }; } // namespace Model } // namespace CloudWatchEvents } // namespace Aws