/** * 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 DecisionTaskCompleted * event.

See Also:

AWS * API Reference

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

User defined context for the workflow execution.

*/ inline const Aws::String& GetExecutionContext() const{ return m_executionContext; } /** *

User defined context for the workflow execution.

*/ inline bool ExecutionContextHasBeenSet() const { return m_executionContextHasBeenSet; } /** *

User defined context for the workflow execution.

*/ inline void SetExecutionContext(const Aws::String& value) { m_executionContextHasBeenSet = true; m_executionContext = value; } /** *

User defined context for the workflow execution.

*/ inline void SetExecutionContext(Aws::String&& value) { m_executionContextHasBeenSet = true; m_executionContext = std::move(value); } /** *

User defined context for the workflow execution.

*/ inline void SetExecutionContext(const char* value) { m_executionContextHasBeenSet = true; m_executionContext.assign(value); } /** *

User defined context for the workflow execution.

*/ inline DecisionTaskCompletedEventAttributes& WithExecutionContext(const Aws::String& value) { SetExecutionContext(value); return *this;} /** *

User defined context for the workflow execution.

*/ inline DecisionTaskCompletedEventAttributes& WithExecutionContext(Aws::String&& value) { SetExecutionContext(std::move(value)); return *this;} /** *

User defined context for the workflow execution.

*/ inline DecisionTaskCompletedEventAttributes& WithExecutionContext(const char* value) { SetExecutionContext(value); return *this;} /** *

The ID of the DecisionTaskScheduled event that was recorded when * this decision task was scheduled. This information can be useful for diagnosing * problems by tracing back the chain of events leading up to this event.

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

The ID of the DecisionTaskScheduled event that was recorded when * this decision task was scheduled. This information can be useful for diagnosing * problems by tracing back the chain of events leading up to this event.

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

The ID of the DecisionTaskScheduled event that was recorded when * this decision task was scheduled. This information can be useful for diagnosing * problems by tracing 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 DecisionTaskScheduled event that was recorded when * this decision task was scheduled. This information can be useful for diagnosing * problems by tracing back the chain of events leading up to this event.

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

The ID of the DecisionTaskStarted event recorded when this * decision task was started. This information can be useful for diagnosing * problems by tracing back the chain of events leading up to this event.

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

The ID of the DecisionTaskStarted event recorded when this * decision task was started. This information can be useful for diagnosing * problems by tracing back the chain of events leading up to this event.

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

The ID of the DecisionTaskStarted event recorded when this * decision task was started. This information can be useful for diagnosing * problems by tracing 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 DecisionTaskStarted event recorded when this * decision task was started. This information can be useful for diagnosing * problems by tracing back the chain of events leading up to this event.

*/ inline DecisionTaskCompletedEventAttributes& WithStartedEventId(long long value) { SetStartedEventId(value); return *this;} private: Aws::String m_executionContext; bool m_executionContextHasBeenSet = false; long long m_scheduledEventId; bool m_scheduledEventIdHasBeenSet = false; long long m_startedEventId; bool m_startedEventIdHasBeenSet = false; }; } // namespace Model } // namespace SWF } // namespace Aws