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

A configuration object that specifies the destination of an event after * Lambda processes it.

See Also:

AWS * API Reference

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

The destination configuration for successful invocations.

*/ inline const OnSuccess& GetOnSuccess() const{ return m_onSuccess; } /** *

The destination configuration for successful invocations.

*/ inline bool OnSuccessHasBeenSet() const { return m_onSuccessHasBeenSet; } /** *

The destination configuration for successful invocations.

*/ inline void SetOnSuccess(const OnSuccess& value) { m_onSuccessHasBeenSet = true; m_onSuccess = value; } /** *

The destination configuration for successful invocations.

*/ inline void SetOnSuccess(OnSuccess&& value) { m_onSuccessHasBeenSet = true; m_onSuccess = std::move(value); } /** *

The destination configuration for successful invocations.

*/ inline DestinationConfig& WithOnSuccess(const OnSuccess& value) { SetOnSuccess(value); return *this;} /** *

The destination configuration for successful invocations.

*/ inline DestinationConfig& WithOnSuccess(OnSuccess&& value) { SetOnSuccess(std::move(value)); return *this;} /** *

The destination configuration for failed invocations.

*/ inline const OnFailure& GetOnFailure() const{ return m_onFailure; } /** *

The destination configuration for failed invocations.

*/ inline bool OnFailureHasBeenSet() const { return m_onFailureHasBeenSet; } /** *

The destination configuration for failed invocations.

*/ inline void SetOnFailure(const OnFailure& value) { m_onFailureHasBeenSet = true; m_onFailure = value; } /** *

The destination configuration for failed invocations.

*/ inline void SetOnFailure(OnFailure&& value) { m_onFailureHasBeenSet = true; m_onFailure = std::move(value); } /** *

The destination configuration for failed invocations.

*/ inline DestinationConfig& WithOnFailure(const OnFailure& value) { SetOnFailure(value); return *this;} /** *

The destination configuration for failed invocations.

*/ inline DestinationConfig& WithOnFailure(OnFailure&& value) { SetOnFailure(std::move(value)); return *this;} private: OnSuccess m_onSuccess; bool m_onSuccessHasBeenSet = false; OnFailure m_onFailure; bool m_onFailureHasBeenSet = false; }; } // namespace Model } // namespace Lambda } // namespace Aws