89 lines
2.5 KiB
C++
89 lines
2.5 KiB
C++
/**
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|
*/
|
|
|
|
#pragma once
|
|
#include <aws/lambda/Lambda_EXPORTS.h>
|
|
#include <aws/core/utils/memory/stl/AWSString.h>
|
|
#include <utility>
|
|
|
|
namespace Aws
|
|
{
|
|
namespace Utils
|
|
{
|
|
namespace Json
|
|
{
|
|
class JsonValue;
|
|
class JsonView;
|
|
} // namespace Json
|
|
} // namespace Utils
|
|
namespace Lambda
|
|
{
|
|
namespace Model
|
|
{
|
|
|
|
/**
|
|
* <p>A destination for events that failed processing.</p><p><h3>See Also:</h3>
|
|
* <a href="http://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/OnFailure">AWS
|
|
* API Reference</a></p>
|
|
*/
|
|
class AWS_LAMBDA_API OnFailure
|
|
{
|
|
public:
|
|
OnFailure();
|
|
OnFailure(Aws::Utils::Json::JsonView jsonValue);
|
|
OnFailure& operator=(Aws::Utils::Json::JsonView jsonValue);
|
|
Aws::Utils::Json::JsonValue Jsonize() const;
|
|
|
|
|
|
/**
|
|
* <p>The Amazon Resource Name (ARN) of the destination resource.</p>
|
|
*/
|
|
inline const Aws::String& GetDestination() const{ return m_destination; }
|
|
|
|
/**
|
|
* <p>The Amazon Resource Name (ARN) of the destination resource.</p>
|
|
*/
|
|
inline bool DestinationHasBeenSet() const { return m_destinationHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The Amazon Resource Name (ARN) of the destination resource.</p>
|
|
*/
|
|
inline void SetDestination(const Aws::String& value) { m_destinationHasBeenSet = true; m_destination = value; }
|
|
|
|
/**
|
|
* <p>The Amazon Resource Name (ARN) of the destination resource.</p>
|
|
*/
|
|
inline void SetDestination(Aws::String&& value) { m_destinationHasBeenSet = true; m_destination = std::move(value); }
|
|
|
|
/**
|
|
* <p>The Amazon Resource Name (ARN) of the destination resource.</p>
|
|
*/
|
|
inline void SetDestination(const char* value) { m_destinationHasBeenSet = true; m_destination.assign(value); }
|
|
|
|
/**
|
|
* <p>The Amazon Resource Name (ARN) of the destination resource.</p>
|
|
*/
|
|
inline OnFailure& WithDestination(const Aws::String& value) { SetDestination(value); return *this;}
|
|
|
|
/**
|
|
* <p>The Amazon Resource Name (ARN) of the destination resource.</p>
|
|
*/
|
|
inline OnFailure& WithDestination(Aws::String&& value) { SetDestination(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>The Amazon Resource Name (ARN) of the destination resource.</p>
|
|
*/
|
|
inline OnFailure& WithDestination(const char* value) { SetDestination(value); return *this;}
|
|
|
|
private:
|
|
|
|
Aws::String m_destination;
|
|
bool m_destinationHasBeenSet;
|
|
};
|
|
|
|
} // namespace Model
|
|
} // namespace Lambda
|
|
} // namespace Aws
|