/** * 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 API key authorization parameters for the * connection.

See Also:

AWS * API Reference

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

The name of the API key to use for authorization.

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

The name of the API key to use for authorization.

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

The name of the API key to use for authorization.

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

The name of the API key to use for authorization.

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

The name of the API key to use for authorization.

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

The name of the API key to use for authorization.

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

The name of the API key to use for authorization.

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

The name of the API key to use for authorization.

*/ inline CreateConnectionApiKeyAuthRequestParameters& WithApiKeyName(const char* value) { SetApiKeyName(value); return *this;} /** *

The value for the API key to use for authorization.

*/ inline const Aws::String& GetApiKeyValue() const{ return m_apiKeyValue; } /** *

The value for the API key to use for authorization.

*/ inline bool ApiKeyValueHasBeenSet() const { return m_apiKeyValueHasBeenSet; } /** *

The value for the API key to use for authorization.

*/ inline void SetApiKeyValue(const Aws::String& value) { m_apiKeyValueHasBeenSet = true; m_apiKeyValue = value; } /** *

The value for the API key to use for authorization.

*/ inline void SetApiKeyValue(Aws::String&& value) { m_apiKeyValueHasBeenSet = true; m_apiKeyValue = std::move(value); } /** *

The value for the API key to use for authorization.

*/ inline void SetApiKeyValue(const char* value) { m_apiKeyValueHasBeenSet = true; m_apiKeyValue.assign(value); } /** *

The value for the API key to use for authorization.

*/ inline CreateConnectionApiKeyAuthRequestParameters& WithApiKeyValue(const Aws::String& value) { SetApiKeyValue(value); return *this;} /** *

The value for the API key to use for authorization.

*/ inline CreateConnectionApiKeyAuthRequestParameters& WithApiKeyValue(Aws::String&& value) { SetApiKeyValue(std::move(value)); return *this;} /** *

The value for the API key to use for authorization.

*/ inline CreateConnectionApiKeyAuthRequestParameters& WithApiKeyValue(const char* value) { SetApiKeyValue(value); return *this;} private: Aws::String m_apiKeyName; bool m_apiKeyNameHasBeenSet = false; Aws::String m_apiKeyValue; bool m_apiKeyValueHasBeenSet = false; }; } // namespace Model } // namespace EventBridge } // namespace Aws