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

See Also:

AWS * API Reference

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

The type of the timeout that caused this event.

*/ inline const ActivityTaskTimeoutType& GetTimeoutType() const{ return m_timeoutType; } /** *

The type of the timeout that caused this event.

*/ inline bool TimeoutTypeHasBeenSet() const { return m_timeoutTypeHasBeenSet; } /** *

The type of the timeout that caused this event.

*/ inline void SetTimeoutType(const ActivityTaskTimeoutType& value) { m_timeoutTypeHasBeenSet = true; m_timeoutType = value; } /** *

The type of the timeout that caused this event.

*/ inline void SetTimeoutType(ActivityTaskTimeoutType&& value) { m_timeoutTypeHasBeenSet = true; m_timeoutType = std::move(value); } /** *

The type of the timeout that caused this event.

*/ inline ActivityTaskTimedOutEventAttributes& WithTimeoutType(const ActivityTaskTimeoutType& value) { SetTimeoutType(value); return *this;} /** *

The type of the timeout that caused this event.

*/ inline ActivityTaskTimedOutEventAttributes& WithTimeoutType(ActivityTaskTimeoutType&& value) { SetTimeoutType(std::move(value)); return *this;} /** *

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

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

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

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

Contains the content of the details parameter for the last call * made by the activity to RecordActivityTaskHeartbeat.

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

Contains the content of the details parameter for the last call * made by the activity to RecordActivityTaskHeartbeat.

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

Contains the content of the details parameter for the last call * made by the activity to RecordActivityTaskHeartbeat.

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

Contains the content of the details parameter for the last call * made by the activity to RecordActivityTaskHeartbeat.

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

Contains the content of the details parameter for the last call * made by the activity to RecordActivityTaskHeartbeat.

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

Contains the content of the details parameter for the last call * made by the activity to RecordActivityTaskHeartbeat.

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

Contains the content of the details parameter for the last call * made by the activity to RecordActivityTaskHeartbeat.

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

Contains the content of the details parameter for the last call * made by the activity to RecordActivityTaskHeartbeat.

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