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

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

See Also:

AWS * API Reference

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

The ID of the ActivityTaskScheduled 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 ActivityTaskScheduled 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 ActivityTaskScheduled 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 ActivityTaskScheduled 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 StartLambdaFunctionFailedEventAttributes& WithScheduledEventId(long long value) { SetScheduledEventId(value); return *this;} /** *

The cause of the failure. To help diagnose issues, use this information to * trace back the chain of events leading up to this event.

If * cause is set to OPERATION_NOT_PERMITTED, the decision * failed because the IAM role attached to the execution lacked sufficient * permissions. For details and example IAM policies, see Lambda * Tasks in the Amazon SWF Developer Guide.

*/ inline const StartLambdaFunctionFailedCause& GetCause() const{ return m_cause; } /** *

The cause of the failure. To help diagnose issues, use this information to * trace back the chain of events leading up to this event.

If * cause is set to OPERATION_NOT_PERMITTED, the decision * failed because the IAM role attached to the execution lacked sufficient * permissions. For details and example IAM policies, see Lambda * Tasks in the Amazon SWF Developer Guide.

*/ inline bool CauseHasBeenSet() const { return m_causeHasBeenSet; } /** *

The cause of the failure. To help diagnose issues, use this information to * trace back the chain of events leading up to this event.

If * cause is set to OPERATION_NOT_PERMITTED, the decision * failed because the IAM role attached to the execution lacked sufficient * permissions. For details and example IAM policies, see Lambda * Tasks in the Amazon SWF Developer Guide.

*/ inline void SetCause(const StartLambdaFunctionFailedCause& value) { m_causeHasBeenSet = true; m_cause = value; } /** *

The cause of the failure. To help diagnose issues, use this information to * trace back the chain of events leading up to this event.

If * cause is set to OPERATION_NOT_PERMITTED, the decision * failed because the IAM role attached to the execution lacked sufficient * permissions. For details and example IAM policies, see Lambda * Tasks in the Amazon SWF Developer Guide.

*/ inline void SetCause(StartLambdaFunctionFailedCause&& value) { m_causeHasBeenSet = true; m_cause = std::move(value); } /** *

The cause of the failure. To help diagnose issues, use this information to * trace back the chain of events leading up to this event.

If * cause is set to OPERATION_NOT_PERMITTED, the decision * failed because the IAM role attached to the execution lacked sufficient * permissions. For details and example IAM policies, see Lambda * Tasks in the Amazon SWF Developer Guide.

*/ inline StartLambdaFunctionFailedEventAttributes& WithCause(const StartLambdaFunctionFailedCause& value) { SetCause(value); return *this;} /** *

The cause of the failure. To help diagnose issues, use this information to * trace back the chain of events leading up to this event.

If * cause is set to OPERATION_NOT_PERMITTED, the decision * failed because the IAM role attached to the execution lacked sufficient * permissions. For details and example IAM policies, see Lambda * Tasks in the Amazon SWF Developer Guide.

*/ inline StartLambdaFunctionFailedEventAttributes& WithCause(StartLambdaFunctionFailedCause&& value) { SetCause(std::move(value)); return *this;} /** *

A description that can help diagnose the cause of the fault.

*/ inline const Aws::String& GetMessage() const{ return m_message; } /** *

A description that can help diagnose the cause of the fault.

*/ inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; } /** *

A description that can help diagnose the cause of the fault.

*/ inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; } /** *

A description that can help diagnose the cause of the fault.

*/ inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); } /** *

A description that can help diagnose the cause of the fault.

*/ inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); } /** *

A description that can help diagnose the cause of the fault.

*/ inline StartLambdaFunctionFailedEventAttributes& WithMessage(const Aws::String& value) { SetMessage(value); return *this;} /** *

A description that can help diagnose the cause of the fault.

*/ inline StartLambdaFunctionFailedEventAttributes& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;} /** *

A description that can help diagnose the cause of the fault.

*/ inline StartLambdaFunctionFailedEventAttributes& WithMessage(const char* value) { SetMessage(value); return *this;} private: long long m_scheduledEventId; bool m_scheduledEventIdHasBeenSet = false; StartLambdaFunctionFailedCause m_cause; bool m_causeHasBeenSet = false; Aws::String m_message; bool m_messageHasBeenSet = false; }; } // namespace Model } // namespace SWF } // namespace Aws