/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace SecurityHub { namespace Model { /** *

A function's environment variable settings.

See Also:

AWS * API Reference

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

Environment variable key-value pairs.

*/ inline const Aws::Map& GetVariables() const{ return m_variables; } /** *

Environment variable key-value pairs.

*/ inline bool VariablesHasBeenSet() const { return m_variablesHasBeenSet; } /** *

Environment variable key-value pairs.

*/ inline void SetVariables(const Aws::Map& value) { m_variablesHasBeenSet = true; m_variables = value; } /** *

Environment variable key-value pairs.

*/ inline void SetVariables(Aws::Map&& value) { m_variablesHasBeenSet = true; m_variables = std::move(value); } /** *

Environment variable key-value pairs.

*/ inline AwsLambdaFunctionEnvironment& WithVariables(const Aws::Map& value) { SetVariables(value); return *this;} /** *

Environment variable key-value pairs.

*/ inline AwsLambdaFunctionEnvironment& WithVariables(Aws::Map&& value) { SetVariables(std::move(value)); return *this;} /** *

Environment variable key-value pairs.

*/ inline AwsLambdaFunctionEnvironment& AddVariables(const Aws::String& key, const Aws::String& value) { m_variablesHasBeenSet = true; m_variables.emplace(key, value); return *this; } /** *

Environment variable key-value pairs.

*/ inline AwsLambdaFunctionEnvironment& AddVariables(Aws::String&& key, const Aws::String& value) { m_variablesHasBeenSet = true; m_variables.emplace(std::move(key), value); return *this; } /** *

Environment variable key-value pairs.

*/ inline AwsLambdaFunctionEnvironment& AddVariables(const Aws::String& key, Aws::String&& value) { m_variablesHasBeenSet = true; m_variables.emplace(key, std::move(value)); return *this; } /** *

Environment variable key-value pairs.

*/ inline AwsLambdaFunctionEnvironment& AddVariables(Aws::String&& key, Aws::String&& value) { m_variablesHasBeenSet = true; m_variables.emplace(std::move(key), std::move(value)); return *this; } /** *

Environment variable key-value pairs.

*/ inline AwsLambdaFunctionEnvironment& AddVariables(const char* key, Aws::String&& value) { m_variablesHasBeenSet = true; m_variables.emplace(key, std::move(value)); return *this; } /** *

Environment variable key-value pairs.

*/ inline AwsLambdaFunctionEnvironment& AddVariables(Aws::String&& key, const char* value) { m_variablesHasBeenSet = true; m_variables.emplace(std::move(key), value); return *this; } /** *

Environment variable key-value pairs.

*/ inline AwsLambdaFunctionEnvironment& AddVariables(const char* key, const char* value) { m_variablesHasBeenSet = true; m_variables.emplace(key, value); return *this; } /** *

An AwsLambdaFunctionEnvironmentError object.

*/ inline const AwsLambdaFunctionEnvironmentError& GetError() const{ return m_error; } /** *

An AwsLambdaFunctionEnvironmentError object.

*/ inline bool ErrorHasBeenSet() const { return m_errorHasBeenSet; } /** *

An AwsLambdaFunctionEnvironmentError object.

*/ inline void SetError(const AwsLambdaFunctionEnvironmentError& value) { m_errorHasBeenSet = true; m_error = value; } /** *

An AwsLambdaFunctionEnvironmentError object.

*/ inline void SetError(AwsLambdaFunctionEnvironmentError&& value) { m_errorHasBeenSet = true; m_error = std::move(value); } /** *

An AwsLambdaFunctionEnvironmentError object.

*/ inline AwsLambdaFunctionEnvironment& WithError(const AwsLambdaFunctionEnvironmentError& value) { SetError(value); return *this;} /** *

An AwsLambdaFunctionEnvironmentError object.

*/ inline AwsLambdaFunctionEnvironment& WithError(AwsLambdaFunctionEnvironmentError&& value) { SetError(std::move(value)); return *this;} private: Aws::Map m_variables; bool m_variablesHasBeenSet = false; AwsLambdaFunctionEnvironmentError m_error; bool m_errorHasBeenSet = false; }; } // namespace Model } // namespace SecurityHub } // namespace Aws