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

See * Also:

AWS * API Reference

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

The unique ID of the timer that was canceled.

*/ inline const Aws::String& GetTimerId() const{ return m_timerId; } /** *

The unique ID of the timer that was canceled.

*/ inline bool TimerIdHasBeenSet() const { return m_timerIdHasBeenSet; } /** *

The unique ID of the timer that was canceled.

*/ inline void SetTimerId(const Aws::String& value) { m_timerIdHasBeenSet = true; m_timerId = value; } /** *

The unique ID of the timer that was canceled.

*/ inline void SetTimerId(Aws::String&& value) { m_timerIdHasBeenSet = true; m_timerId = std::move(value); } /** *

The unique ID of the timer that was canceled.

*/ inline void SetTimerId(const char* value) { m_timerIdHasBeenSet = true; m_timerId.assign(value); } /** *

The unique ID of the timer that was canceled.

*/ inline TimerCanceledEventAttributes& WithTimerId(const Aws::String& value) { SetTimerId(value); return *this;} /** *

The unique ID of the timer that was canceled.

*/ inline TimerCanceledEventAttributes& WithTimerId(Aws::String&& value) { SetTimerId(std::move(value)); return *this;} /** *

The unique ID of the timer that was canceled.

*/ inline TimerCanceledEventAttributes& WithTimerId(const char* value) { SetTimerId(value); return *this;} /** *

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

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

The ID of the DecisionTaskCompleted event corresponding to the * decision task that resulted in the CancelTimer decision to cancel * this timer. This information can be useful for diagnosing problems by tracing * back the chain of events leading up to this event.

*/ inline long long GetDecisionTaskCompletedEventId() const{ return m_decisionTaskCompletedEventId; } /** *

The ID of the DecisionTaskCompleted event corresponding to the * decision task that resulted in the CancelTimer decision to cancel * this timer. This information can be useful for diagnosing problems by tracing * back the chain of events leading up to this event.

*/ inline bool DecisionTaskCompletedEventIdHasBeenSet() const { return m_decisionTaskCompletedEventIdHasBeenSet; } /** *

The ID of the DecisionTaskCompleted event corresponding to the * decision task that resulted in the CancelTimer decision to cancel * this timer. This information can be useful for diagnosing problems by tracing * back the chain of events leading up to this event.

*/ inline void SetDecisionTaskCompletedEventId(long long value) { m_decisionTaskCompletedEventIdHasBeenSet = true; m_decisionTaskCompletedEventId = value; } /** *

The ID of the DecisionTaskCompleted event corresponding to the * decision task that resulted in the CancelTimer decision to cancel * this timer. This information can be useful for diagnosing problems by tracing * back the chain of events leading up to this event.

*/ inline TimerCanceledEventAttributes& WithDecisionTaskCompletedEventId(long long value) { SetDecisionTaskCompletedEventId(value); return *this;} private: Aws::String m_timerId; bool m_timerIdHasBeenSet = false; long long m_startedEventId; bool m_startedEventIdHasBeenSet = false; long long m_decisionTaskCompletedEventId; bool m_decisionTaskCompletedEventIdHasBeenSet = false; }; } // namespace Model } // namespace SWF } // namespace Aws