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

See Also:

AWS * API Reference

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

The ID of the DecisionTaskCompleted event corresponding to the * decision task that resulted in the RequestCancelActivityTask * decision for this cancellation request. 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 RequestCancelActivityTask * decision for this cancellation request. 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 RequestCancelActivityTask * decision for this cancellation request. 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 RequestCancelActivityTask * decision for this cancellation request. This information can be useful for * diagnosing problems by tracing back the chain of events leading up to this * event.

*/ inline ActivityTaskCancelRequestedEventAttributes& WithDecisionTaskCompletedEventId(long long value) { SetDecisionTaskCompletedEventId(value); return *this;} /** *

The unique ID of the task.

*/ inline const Aws::String& GetActivityId() const{ return m_activityId; } /** *

The unique ID of the task.

*/ inline bool ActivityIdHasBeenSet() const { return m_activityIdHasBeenSet; } /** *

The unique ID of the task.

*/ inline void SetActivityId(const Aws::String& value) { m_activityIdHasBeenSet = true; m_activityId = value; } /** *

The unique ID of the task.

*/ inline void SetActivityId(Aws::String&& value) { m_activityIdHasBeenSet = true; m_activityId = std::move(value); } /** *

The unique ID of the task.

*/ inline void SetActivityId(const char* value) { m_activityIdHasBeenSet = true; m_activityId.assign(value); } /** *

The unique ID of the task.

*/ inline ActivityTaskCancelRequestedEventAttributes& WithActivityId(const Aws::String& value) { SetActivityId(value); return *this;} /** *

The unique ID of the task.

*/ inline ActivityTaskCancelRequestedEventAttributes& WithActivityId(Aws::String&& value) { SetActivityId(std::move(value)); return *this;} /** *

The unique ID of the task.

*/ inline ActivityTaskCancelRequestedEventAttributes& WithActivityId(const char* value) { SetActivityId(value); return *this;} private: long long m_decisionTaskCompletedEventId; bool m_decisionTaskCompletedEventIdHasBeenSet = false; Aws::String m_activityId; bool m_activityIdHasBeenSet = false; }; } // namespace Model } // namespace SWF } // namespace Aws