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

A destination for events that failed processing.

See Also:

* AWS * API Reference

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

The Amazon Resource Name (ARN) of the destination resource.

*/ inline const Aws::String& GetDestination() const{ return m_destination; } /** *

The Amazon Resource Name (ARN) of the destination resource.

*/ inline bool DestinationHasBeenSet() const { return m_destinationHasBeenSet; } /** *

The Amazon Resource Name (ARN) of the destination resource.

*/ inline void SetDestination(const Aws::String& value) { m_destinationHasBeenSet = true; m_destination = value; } /** *

The Amazon Resource Name (ARN) of the destination resource.

*/ inline void SetDestination(Aws::String&& value) { m_destinationHasBeenSet = true; m_destination = std::move(value); } /** *

The Amazon Resource Name (ARN) of the destination resource.

*/ inline void SetDestination(const char* value) { m_destinationHasBeenSet = true; m_destination.assign(value); } /** *

The Amazon Resource Name (ARN) of the destination resource.

*/ inline OnFailure& WithDestination(const Aws::String& value) { SetDestination(value); return *this;} /** *

The Amazon Resource Name (ARN) of the destination resource.

*/ inline OnFailure& WithDestination(Aws::String&& value) { SetDestination(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the destination resource.

*/ inline OnFailure& WithDestination(const char* value) { SetDestination(value); return *this;} private: Aws::String m_destination; bool m_destinationHasBeenSet = false; }; } // namespace Model } // namespace Lambda } // namespace Aws