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

The results of an operation to update or read environment variables. If the * operation succeeds, the response contains the environment variables. If it * fails, the response contains details about the error.

See Also:

* AWS * API Reference

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

Environment variable key-value pairs. Omitted from CloudTrail logs.

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

Environment variable key-value pairs. Omitted from CloudTrail logs.

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

Environment variable key-value pairs. Omitted from CloudTrail logs.

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

Environment variable key-value pairs. Omitted from CloudTrail logs.

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

Environment variable key-value pairs. Omitted from CloudTrail logs.

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

Environment variable key-value pairs. Omitted from CloudTrail logs.

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

Environment variable key-value pairs. Omitted from CloudTrail logs.

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

Environment variable key-value pairs. Omitted from CloudTrail logs.

*/ inline EnvironmentResponse& 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. Omitted from CloudTrail logs.

*/ inline EnvironmentResponse& 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. Omitted from CloudTrail logs.

*/ inline EnvironmentResponse& 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. Omitted from CloudTrail logs.

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

Environment variable key-value pairs. Omitted from CloudTrail logs.

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

Environment variable key-value pairs. Omitted from CloudTrail logs.

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

Error messages for environment variables that couldn't be applied.

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

Error messages for environment variables that couldn't be applied.

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

Error messages for environment variables that couldn't be applied.

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

Error messages for environment variables that couldn't be applied.

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

Error messages for environment variables that couldn't be applied.

*/ inline EnvironmentResponse& WithError(const EnvironmentError& value) { SetError(value); return *this;} /** *

Error messages for environment variables that couldn't be applied.

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