/** * 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 LambdaFunctionCompleted event. It * isn't set for other event types.

See Also:

AWS * API Reference

*/ class LambdaFunctionCompletedEventAttributes { public: AWS_SWF_API LambdaFunctionCompletedEventAttributes(); AWS_SWF_API LambdaFunctionCompletedEventAttributes(Aws::Utils::Json::JsonView jsonValue); AWS_SWF_API LambdaFunctionCompletedEventAttributes& 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 Lambda 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 Lambda 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 Lambda 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 Lambda task was scheduled. To help diagnose issues, use this * information to trace back the chain of events leading up to this event.

*/ inline LambdaFunctionCompletedEventAttributes& 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 LambdaFunctionCompletedEventAttributes& WithStartedEventId(long long value) { SetStartedEventId(value); return *this;} /** *

The results of the Lambda task.

*/ inline const Aws::String& GetResult() const{ return m_result; } /** *

The results of the Lambda task.

*/ inline bool ResultHasBeenSet() const { return m_resultHasBeenSet; } /** *

The results of the Lambda task.

*/ inline void SetResult(const Aws::String& value) { m_resultHasBeenSet = true; m_result = value; } /** *

The results of the Lambda task.

*/ inline void SetResult(Aws::String&& value) { m_resultHasBeenSet = true; m_result = std::move(value); } /** *

The results of the Lambda task.

*/ inline void SetResult(const char* value) { m_resultHasBeenSet = true; m_result.assign(value); } /** *

The results of the Lambda task.

*/ inline LambdaFunctionCompletedEventAttributes& WithResult(const Aws::String& value) { SetResult(value); return *this;} /** *

The results of the Lambda task.

*/ inline LambdaFunctionCompletedEventAttributes& WithResult(Aws::String&& value) { SetResult(std::move(value)); return *this;} /** *

The results of the Lambda task.

*/ inline LambdaFunctionCompletedEventAttributes& WithResult(const char* value) { SetResult(value); return *this;} private: long long m_scheduledEventId; bool m_scheduledEventIdHasBeenSet = false; long long m_startedEventId; bool m_startedEventIdHasBeenSet = false; Aws::String m_result; bool m_resultHasBeenSet = false; }; } // namespace Model } // namespace SWF } // namespace Aws