/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace Lambda { namespace Model { class GetFunctionResult { public: AWS_LAMBDA_API GetFunctionResult(); AWS_LAMBDA_API GetFunctionResult(const Aws::AmazonWebServiceResult& result); AWS_LAMBDA_API GetFunctionResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The configuration of the function or version.

*/ inline const FunctionConfiguration& GetConfiguration() const{ return m_configuration; } /** *

The configuration of the function or version.

*/ inline void SetConfiguration(const FunctionConfiguration& value) { m_configuration = value; } /** *

The configuration of the function or version.

*/ inline void SetConfiguration(FunctionConfiguration&& value) { m_configuration = std::move(value); } /** *

The configuration of the function or version.

*/ inline GetFunctionResult& WithConfiguration(const FunctionConfiguration& value) { SetConfiguration(value); return *this;} /** *

The configuration of the function or version.

*/ inline GetFunctionResult& WithConfiguration(FunctionConfiguration&& value) { SetConfiguration(std::move(value)); return *this;} /** *

The deployment package of the function or version.

*/ inline const FunctionCodeLocation& GetCode() const{ return m_code; } /** *

The deployment package of the function or version.

*/ inline void SetCode(const FunctionCodeLocation& value) { m_code = value; } /** *

The deployment package of the function or version.

*/ inline void SetCode(FunctionCodeLocation&& value) { m_code = std::move(value); } /** *

The deployment package of the function or version.

*/ inline GetFunctionResult& WithCode(const FunctionCodeLocation& value) { SetCode(value); return *this;} /** *

The deployment package of the function or version.

*/ inline GetFunctionResult& WithCode(FunctionCodeLocation&& value) { SetCode(std::move(value)); return *this;} /** *

The function's tags.

*/ inline const Aws::Map& GetTags() const{ return m_tags; } /** *

The function's tags.

*/ inline void SetTags(const Aws::Map& value) { m_tags = value; } /** *

The function's tags.

*/ inline void SetTags(Aws::Map&& value) { m_tags = std::move(value); } /** *

The function's tags.

*/ inline GetFunctionResult& WithTags(const Aws::Map& value) { SetTags(value); return *this;} /** *

The function's tags.

*/ inline GetFunctionResult& WithTags(Aws::Map&& value) { SetTags(std::move(value)); return *this;} /** *

The function's tags.

*/ inline GetFunctionResult& AddTags(const Aws::String& key, const Aws::String& value) { m_tags.emplace(key, value); return *this; } /** *

The function's tags.

*/ inline GetFunctionResult& AddTags(Aws::String&& key, const Aws::String& value) { m_tags.emplace(std::move(key), value); return *this; } /** *

The function's tags.

*/ inline GetFunctionResult& AddTags(const Aws::String& key, Aws::String&& value) { m_tags.emplace(key, std::move(value)); return *this; } /** *

The function's tags.

*/ inline GetFunctionResult& AddTags(Aws::String&& key, Aws::String&& value) { m_tags.emplace(std::move(key), std::move(value)); return *this; } /** *

The function's tags.

*/ inline GetFunctionResult& AddTags(const char* key, Aws::String&& value) { m_tags.emplace(key, std::move(value)); return *this; } /** *

The function's tags.

*/ inline GetFunctionResult& AddTags(Aws::String&& key, const char* value) { m_tags.emplace(std::move(key), value); return *this; } /** *

The function's tags.

*/ inline GetFunctionResult& AddTags(const char* key, const char* value) { m_tags.emplace(key, value); return *this; } /** *

The function's reserved * concurrency.

*/ inline const Concurrency& GetConcurrency() const{ return m_concurrency; } /** *

The function's reserved * concurrency.

*/ inline void SetConcurrency(const Concurrency& value) { m_concurrency = value; } /** *

The function's reserved * concurrency.

*/ inline void SetConcurrency(Concurrency&& value) { m_concurrency = std::move(value); } /** *

The function's reserved * concurrency.

*/ inline GetFunctionResult& WithConcurrency(const Concurrency& value) { SetConcurrency(value); return *this;} /** *

The function's reserved * concurrency.

*/ inline GetFunctionResult& WithConcurrency(Concurrency&& value) { SetConcurrency(std::move(value)); return *this;} inline const Aws::String& GetRequestId() const{ return m_requestId; } inline void SetRequestId(const Aws::String& value) { m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestId.assign(value); } inline GetFunctionResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline GetFunctionResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline GetFunctionResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: FunctionConfiguration m_configuration; FunctionCodeLocation m_code; Aws::Map m_tags; Concurrency m_concurrency; Aws::String m_requestId; }; } // namespace Model } // namespace Lambda } // namespace Aws