/** * 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 SWF { namespace Model { /** *

Provides the details of the LambdaFunctionFailed event. It isn't * set for other event types.

See Also:

AWS * API Reference

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

The ID of the LambdaFunctionScheduled event that was recorded * when this activity task was scheduled. To help diagnose issues, use this * information to trace back the chain of events leading up to this event.

*/ inline long long GetScheduledEventId() const{ return m_scheduledEventId; } /** *

The ID of the LambdaFunctionScheduled event that was recorded * when this activity task was scheduled. To help diagnose issues, use this * information to trace back the chain of events leading up to this event.

*/ inline bool ScheduledEventIdHasBeenSet() const { return m_scheduledEventIdHasBeenSet; } /** *

The ID of the LambdaFunctionScheduled event that was recorded * when this activity task was scheduled. To help diagnose issues, use this * information to trace back the chain of events leading up to this event.

*/ inline void SetScheduledEventId(long long value) { m_scheduledEventIdHasBeenSet = true; m_scheduledEventId = value; } /** *

The ID of the LambdaFunctionScheduled event that was recorded * when this activity task was scheduled. To help diagnose issues, use this * information to trace back the chain of events leading up to this event.

*/ inline LambdaFunctionFailedEventAttributes& WithScheduledEventId(long long value) { SetScheduledEventId(value); return *this;} /** *

The ID of the LambdaFunctionStarted event recorded when this * activity task started. To help diagnose issues, use this information to trace * back the chain of events leading up to this event.

*/ inline long long GetStartedEventId() const{ return m_startedEventId; } /** *

The ID of the LambdaFunctionStarted event recorded when this * activity task started. To help diagnose issues, use this information to trace * back the chain of events leading up to this event.

*/ inline bool StartedEventIdHasBeenSet() const { return m_startedEventIdHasBeenSet; } /** *

The ID of the LambdaFunctionStarted event recorded when this * activity task started. To help diagnose issues, use this information to trace * back the chain of events leading up to this event.

*/ inline void SetStartedEventId(long long value) { m_startedEventIdHasBeenSet = true; m_startedEventId = value; } /** *

The ID of the LambdaFunctionStarted event recorded when this * activity task started. To help diagnose issues, use this information to trace * back the chain of events leading up to this event.

*/ inline LambdaFunctionFailedEventAttributes& WithStartedEventId(long long value) { SetStartedEventId(value); return *this;} /** *

The reason provided for the failure.

*/ inline const Aws::String& GetReason() const{ return m_reason; } /** *

The reason provided for the failure.

*/ inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; } /** *

The reason provided for the failure.

*/ inline void SetReason(const Aws::String& value) { m_reasonHasBeenSet = true; m_reason = value; } /** *

The reason provided for the failure.

*/ inline void SetReason(Aws::String&& value) { m_reasonHasBeenSet = true; m_reason = std::move(value); } /** *

The reason provided for the failure.

*/ inline void SetReason(const char* value) { m_reasonHasBeenSet = true; m_reason.assign(value); } /** *

The reason provided for the failure.

*/ inline LambdaFunctionFailedEventAttributes& WithReason(const Aws::String& value) { SetReason(value); return *this;} /** *

The reason provided for the failure.

*/ inline LambdaFunctionFailedEventAttributes& WithReason(Aws::String&& value) { SetReason(std::move(value)); return *this;} /** *

The reason provided for the failure.

*/ inline LambdaFunctionFailedEventAttributes& WithReason(const char* value) { SetReason(value); return *this;} /** *

The details of the failure.

*/ inline const Aws::String& GetDetails() const{ return m_details; } /** *

The details of the failure.

*/ inline bool DetailsHasBeenSet() const { return m_detailsHasBeenSet; } /** *

The details of the failure.

*/ inline void SetDetails(const Aws::String& value) { m_detailsHasBeenSet = true; m_details = value; } /** *

The details of the failure.

*/ inline void SetDetails(Aws::String&& value) { m_detailsHasBeenSet = true; m_details = std::move(value); } /** *

The details of the failure.

*/ inline void SetDetails(const char* value) { m_detailsHasBeenSet = true; m_details.assign(value); } /** *

The details of the failure.

*/ inline LambdaFunctionFailedEventAttributes& WithDetails(const Aws::String& value) { SetDetails(value); return *this;} /** *

The details of the failure.

*/ inline LambdaFunctionFailedEventAttributes& WithDetails(Aws::String&& value) { SetDetails(std::move(value)); return *this;} /** *

The details of the failure.

*/ inline LambdaFunctionFailedEventAttributes& WithDetails(const char* value) { SetDetails(value); return *this;} private: long long m_scheduledEventId; bool m_scheduledEventIdHasBeenSet = false; long long m_startedEventId; bool m_startedEventIdHasBeenSet = false; Aws::String m_reason; bool m_reasonHasBeenSet = false; Aws::String m_details; bool m_detailsHasBeenSet = false; }; } // namespace Model } // namespace SWF } // namespace Aws