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

Contains API key credential information.

See Also:

AWS * API Reference

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

An API key for an application.

*/ inline const Aws::String& GetApiKey() const{ return m_apiKey; } /** *

An API key for an application.

*/ inline bool ApiKeyHasBeenSet() const { return m_apiKeyHasBeenSet; } /** *

An API key for an application.

*/ inline void SetApiKey(const Aws::String& value) { m_apiKeyHasBeenSet = true; m_apiKey = value; } /** *

An API key for an application.

*/ inline void SetApiKey(Aws::String&& value) { m_apiKeyHasBeenSet = true; m_apiKey = std::move(value); } /** *

An API key for an application.

*/ inline void SetApiKey(const char* value) { m_apiKeyHasBeenSet = true; m_apiKey.assign(value); } /** *

An API key for an application.

*/ inline ApiKeyCredential& WithApiKey(const Aws::String& value) { SetApiKey(value); return *this;} /** *

An API key for an application.

*/ inline ApiKeyCredential& WithApiKey(Aws::String&& value) { SetApiKey(std::move(value)); return *this;} /** *

An API key for an application.

*/ inline ApiKeyCredential& WithApiKey(const char* value) { SetApiKey(value); return *this;} private: Aws::String m_apiKey; bool m_apiKeyHasBeenSet = false; }; } // namespace Model } // namespace AppFabric } // namespace Aws