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

See Also:

AWS * API Reference

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

The details of the cancellation.

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

The details of the cancellation.

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

The details of the cancellation.

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

The details of the cancellation.

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

The details of the cancellation.

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

The details of the cancellation.

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

The details of the cancellation.

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

The details of the cancellation.

*/ inline WorkflowExecutionCanceledEventAttributes& WithDetails(const char* value) { SetDetails(value); return *this;} /** *

The ID of the DecisionTaskCompleted event corresponding to the * decision task that resulted in the CancelWorkflowExecution 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 CancelWorkflowExecution 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 CancelWorkflowExecution 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 CancelWorkflowExecution 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 WorkflowExecutionCanceledEventAttributes& WithDecisionTaskCompletedEventId(long long value) { SetDecisionTaskCompletedEventId(value); return *this;} private: Aws::String m_details; bool m_detailsHasBeenSet = false; long long m_decisionTaskCompletedEventId; bool m_decisionTaskCompletedEventIdHasBeenSet = false; }; } // namespace Model } // namespace SWF } // namespace Aws