/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Provides the details of the WorkflowExecutionCancelRequested
* event.See Also:
AWS
* API Reference
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.
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.
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.
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.
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