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

See * Also:

AWS * API Reference

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

The external workflow execution to which the cancellation request was * delivered.

*/ inline const WorkflowExecution& GetWorkflowExecution() const{ return m_workflowExecution; } /** *

The external workflow execution to which the cancellation request was * delivered.

*/ inline bool WorkflowExecutionHasBeenSet() const { return m_workflowExecutionHasBeenSet; } /** *

The external workflow execution to which the cancellation request was * delivered.

*/ inline void SetWorkflowExecution(const WorkflowExecution& value) { m_workflowExecutionHasBeenSet = true; m_workflowExecution = value; } /** *

The external workflow execution to which the cancellation request was * delivered.

*/ inline void SetWorkflowExecution(WorkflowExecution&& value) { m_workflowExecutionHasBeenSet = true; m_workflowExecution = std::move(value); } /** *

The external workflow execution to which the cancellation request was * delivered.

*/ inline ExternalWorkflowExecutionCancelRequestedEventAttributes& WithWorkflowExecution(const WorkflowExecution& value) { SetWorkflowExecution(value); return *this;} /** *

The external workflow execution to which the cancellation request was * delivered.

*/ inline ExternalWorkflowExecutionCancelRequestedEventAttributes& WithWorkflowExecution(WorkflowExecution&& value) { SetWorkflowExecution(std::move(value)); return *this;} /** *

The ID of the RequestCancelExternalWorkflowExecutionInitiated * event corresponding to the RequestCancelExternalWorkflowExecution * decision to cancel this external workflow execution. This information can be * useful for diagnosing problems by tracing back the chain of events leading up to * this event.

*/ inline long long GetInitiatedEventId() const{ return m_initiatedEventId; } /** *

The ID of the RequestCancelExternalWorkflowExecutionInitiated * event corresponding to the RequestCancelExternalWorkflowExecution * decision to cancel this external workflow execution. This information can be * useful for diagnosing problems by tracing back the chain of events leading up to * this event.

*/ inline bool InitiatedEventIdHasBeenSet() const { return m_initiatedEventIdHasBeenSet; } /** *

The ID of the RequestCancelExternalWorkflowExecutionInitiated * event corresponding to the RequestCancelExternalWorkflowExecution * decision to cancel this external workflow execution. This information can be * useful for diagnosing problems by tracing back the chain of events leading up to * this event.

*/ inline void SetInitiatedEventId(long long value) { m_initiatedEventIdHasBeenSet = true; m_initiatedEventId = value; } /** *

The ID of the RequestCancelExternalWorkflowExecutionInitiated * event corresponding to the RequestCancelExternalWorkflowExecution * decision to cancel this external workflow execution. This information can be * useful for diagnosing problems by tracing back the chain of events leading up to * this event.

*/ inline ExternalWorkflowExecutionCancelRequestedEventAttributes& WithInitiatedEventId(long long value) { SetInitiatedEventId(value); return *this;} private: WorkflowExecution m_workflowExecution; bool m_workflowExecutionHasBeenSet = false; long long m_initiatedEventId; bool m_initiatedEventIdHasBeenSet = false; }; } // namespace Model } // namespace SWF } // namespace Aws