/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #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 WorkflowExecutionCancelRequested * event.

See Also:

AWS * API Reference

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

The external workflow execution for which the cancellation was requested.

*/ inline const WorkflowExecution& GetExternalWorkflowExecution() const{ return m_externalWorkflowExecution; } /** *

The external workflow execution for which the cancellation was requested.

*/ inline bool ExternalWorkflowExecutionHasBeenSet() const { return m_externalWorkflowExecutionHasBeenSet; } /** *

The external workflow execution for which the cancellation was requested.

*/ inline void SetExternalWorkflowExecution(const WorkflowExecution& value) { m_externalWorkflowExecutionHasBeenSet = true; m_externalWorkflowExecution = value; } /** *

The external workflow execution for which the cancellation was requested.

*/ inline void SetExternalWorkflowExecution(WorkflowExecution&& value) { m_externalWorkflowExecutionHasBeenSet = true; m_externalWorkflowExecution = std::move(value); } /** *

The external workflow execution for which the cancellation was requested.

*/ inline WorkflowExecutionCancelRequestedEventAttributes& WithExternalWorkflowExecution(const WorkflowExecution& value) { SetExternalWorkflowExecution(value); return *this;} /** *

The external workflow execution for which the cancellation was requested.

*/ inline WorkflowExecutionCancelRequestedEventAttributes& WithExternalWorkflowExecution(WorkflowExecution&& value) { SetExternalWorkflowExecution(std::move(value)); return *this;} /** *

The ID of the RequestCancelExternalWorkflowExecutionInitiated * event corresponding to the RequestCancelExternalWorkflowExecution * decision to cancel this workflow execution.The source event with this ID can be * found in the history of the source 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 GetExternalInitiatedEventId() const{ return m_externalInitiatedEventId; } /** *

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

*/ inline bool ExternalInitiatedEventIdHasBeenSet() const { return m_externalInitiatedEventIdHasBeenSet; } /** *

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

*/ inline void SetExternalInitiatedEventId(long long value) { m_externalInitiatedEventIdHasBeenSet = true; m_externalInitiatedEventId = value; } /** *

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

*/ inline WorkflowExecutionCancelRequestedEventAttributes& WithExternalInitiatedEventId(long long value) { SetExternalInitiatedEventId(value); return *this;} /** *

If set, indicates that the request to cancel the workflow execution was * automatically generated, and specifies the cause. This happens if the parent * workflow execution times out or is terminated, and the child policy is set to * cancel child executions.

*/ inline const WorkflowExecutionCancelRequestedCause& GetCause() const{ return m_cause; } /** *

If set, indicates that the request to cancel the workflow execution was * automatically generated, and specifies the cause. This happens if the parent * workflow execution times out or is terminated, and the child policy is set to * cancel child executions.

*/ inline bool CauseHasBeenSet() const { return m_causeHasBeenSet; } /** *

If set, indicates that the request to cancel the workflow execution was * automatically generated, and specifies the cause. This happens if the parent * workflow execution times out or is terminated, and the child policy is set to * cancel child executions.

*/ inline void SetCause(const WorkflowExecutionCancelRequestedCause& value) { m_causeHasBeenSet = true; m_cause = value; } /** *

If set, indicates that the request to cancel the workflow execution was * automatically generated, and specifies the cause. This happens if the parent * workflow execution times out or is terminated, and the child policy is set to * cancel child executions.

*/ inline void SetCause(WorkflowExecutionCancelRequestedCause&& value) { m_causeHasBeenSet = true; m_cause = std::move(value); } /** *

If set, indicates that the request to cancel the workflow execution was * automatically generated, and specifies the cause. This happens if the parent * workflow execution times out or is terminated, and the child policy is set to * cancel child executions.

*/ inline WorkflowExecutionCancelRequestedEventAttributes& WithCause(const WorkflowExecutionCancelRequestedCause& value) { SetCause(value); return *this;} /** *

If set, indicates that the request to cancel the workflow execution was * automatically generated, and specifies the cause. This happens if the parent * workflow execution times out or is terminated, and the child policy is set to * cancel child executions.

*/ inline WorkflowExecutionCancelRequestedEventAttributes& WithCause(WorkflowExecutionCancelRequestedCause&& value) { SetCause(std::move(value)); return *this;} private: WorkflowExecution m_externalWorkflowExecution; bool m_externalWorkflowExecutionHasBeenSet = false; long long m_externalInitiatedEventId; bool m_externalInitiatedEventIdHasBeenSet = false; WorkflowExecutionCancelRequestedCause m_cause; bool m_causeHasBeenSet = false; }; } // namespace Model } // namespace SWF } // namespace Aws