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

See Also:

AWS * API Reference

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

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 ActivityTaskFailedEventAttributes& WithReason(const Aws::String& value) { SetReason(value); return *this;} /** *

The reason provided for the failure.

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

The reason provided for the failure.

*/ inline ActivityTaskFailedEventAttributes& 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 ActivityTaskFailedEventAttributes& WithDetails(const Aws::String& value) { SetDetails(value); return *this;} /** *

The details of the failure.

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

The details of the failure.

*/ inline ActivityTaskFailedEventAttributes& WithDetails(const char* value) { SetDetails(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 ActivityTaskFailedEventAttributes& 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 ActivityTaskFailedEventAttributes& WithStartedEventId(long long value) { SetStartedEventId(value); return *this;} private: Aws::String m_reason; bool m_reasonHasBeenSet = false; Aws::String m_details; bool m_detailsHasBeenSet = false; long long m_scheduledEventId; bool m_scheduledEventIdHasBeenSet = false; long long m_startedEventId; bool m_startedEventIdHasBeenSet = false; }; } // namespace Model } // namespace SWF } // namespace Aws