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

The status of your function's recursive loop detection configuration.

*

When this value is set to Allowand Lambda detects your function * being invoked as part of a recursive loop, it doesn't take any action.

*

When this value is set to Terminate and Lambda detects your * function being invoked as part of a recursive loop, it stops your function being * invoked and notifies you.

*/ inline const RecursiveLoop& GetRecursiveLoop() const{ return m_recursiveLoop; } inline void SetRecursiveLoop(const RecursiveLoop& value) { m_recursiveLoop = value; } inline void SetRecursiveLoop(RecursiveLoop&& value) { m_recursiveLoop = std::move(value); } inline PutFunctionRecursionConfigResult& WithRecursiveLoop(const RecursiveLoop& value) { SetRecursiveLoop(value); return *this;} inline PutFunctionRecursionConfigResult& WithRecursiveLoop(RecursiveLoop&& value) { SetRecursiveLoop(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 PutFunctionRecursionConfigResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline PutFunctionRecursionConfigResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline PutFunctionRecursionConfigResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} ///@} private: RecursiveLoop m_recursiveLoop; Aws::String m_requestId; }; } // namespace Model } // namespace Lambda } // namespace Aws