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

See * Also:

AWS * API Reference

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

The workflowId of the external workflow to which the cancel * request was to be delivered.

*/ inline const Aws::String& GetWorkflowId() const{ return m_workflowId; } /** *

The workflowId of the external workflow to which the cancel * request was to be delivered.

*/ inline bool WorkflowIdHasBeenSet() const { return m_workflowIdHasBeenSet; } /** *

The workflowId of the external workflow to which the cancel * request was to be delivered.

*/ inline void SetWorkflowId(const Aws::String& value) { m_workflowIdHasBeenSet = true; m_workflowId = value; } /** *

The workflowId of the external workflow to which the cancel * request was to be delivered.

*/ inline void SetWorkflowId(Aws::String&& value) { m_workflowIdHasBeenSet = true; m_workflowId = std::move(value); } /** *

The workflowId of the external workflow to which the cancel * request was to be delivered.

*/ inline void SetWorkflowId(const char* value) { m_workflowIdHasBeenSet = true; m_workflowId.assign(value); } /** *

The workflowId of the external workflow to which the cancel * request was to be delivered.

*/ inline RequestCancelExternalWorkflowExecutionFailedEventAttributes& WithWorkflowId(const Aws::String& value) { SetWorkflowId(value); return *this;} /** *

The workflowId of the external workflow to which the cancel * request was to be delivered.

*/ inline RequestCancelExternalWorkflowExecutionFailedEventAttributes& WithWorkflowId(Aws::String&& value) { SetWorkflowId(std::move(value)); return *this;} /** *

The workflowId of the external workflow to which the cancel * request was to be delivered.

*/ inline RequestCancelExternalWorkflowExecutionFailedEventAttributes& WithWorkflowId(const char* value) { SetWorkflowId(value); return *this;} /** *

The runId of the external workflow execution.

*/ inline const Aws::String& GetRunId() const{ return m_runId; } /** *

The runId of the external workflow execution.

*/ inline bool RunIdHasBeenSet() const { return m_runIdHasBeenSet; } /** *

The runId of the external workflow execution.

*/ inline void SetRunId(const Aws::String& value) { m_runIdHasBeenSet = true; m_runId = value; } /** *

The runId of the external workflow execution.

*/ inline void SetRunId(Aws::String&& value) { m_runIdHasBeenSet = true; m_runId = std::move(value); } /** *

The runId of the external workflow execution.

*/ inline void SetRunId(const char* value) { m_runIdHasBeenSet = true; m_runId.assign(value); } /** *

The runId of the external workflow execution.

*/ inline RequestCancelExternalWorkflowExecutionFailedEventAttributes& WithRunId(const Aws::String& value) { SetRunId(value); return *this;} /** *

The runId of the external workflow execution.

*/ inline RequestCancelExternalWorkflowExecutionFailedEventAttributes& WithRunId(Aws::String&& value) { SetRunId(std::move(value)); return *this;} /** *

The runId of the external workflow execution.

*/ inline RequestCancelExternalWorkflowExecutionFailedEventAttributes& WithRunId(const char* value) { SetRunId(value); return *this;} /** *

The cause of the failure. This information is generated by the system and can * be useful for diagnostic purposes.

If cause is set to * OPERATION_NOT_PERMITTED, the decision failed because it lacked * sufficient permissions. For details and example IAM policies, see Using * IAM to Manage Access to Amazon SWF Workflows in the Amazon SWF Developer * Guide.

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

The cause of the failure. This information is generated by the system and can * be useful for diagnostic purposes.

If cause is set to * OPERATION_NOT_PERMITTED, the decision failed because it lacked * sufficient permissions. For details and example IAM policies, see Using * IAM to Manage Access to Amazon SWF Workflows in the Amazon SWF Developer * Guide.

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

The cause of the failure. This information is generated by the system and can * be useful for diagnostic purposes.

If cause is set to * OPERATION_NOT_PERMITTED, the decision failed because it lacked * sufficient permissions. For details and example IAM policies, see Using * IAM to Manage Access to Amazon SWF Workflows in the Amazon SWF Developer * Guide.

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

The cause of the failure. This information is generated by the system and can * be useful for diagnostic purposes.

If cause is set to * OPERATION_NOT_PERMITTED, the decision failed because it lacked * sufficient permissions. For details and example IAM policies, see Using * IAM to Manage Access to Amazon SWF Workflows in the Amazon SWF Developer * Guide.

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

The cause of the failure. This information is generated by the system and can * be useful for diagnostic purposes.

If cause is set to * OPERATION_NOT_PERMITTED, the decision failed because it lacked * sufficient permissions. For details and example IAM policies, see Using * IAM to Manage Access to Amazon SWF Workflows in the Amazon SWF Developer * Guide.

*/ inline RequestCancelExternalWorkflowExecutionFailedEventAttributes& WithCause(const RequestCancelExternalWorkflowExecutionFailedCause& value) { SetCause(value); return *this;} /** *

The cause of the failure. This information is generated by the system and can * be useful for diagnostic purposes.

If cause is set to * OPERATION_NOT_PERMITTED, the decision failed because it lacked * sufficient permissions. For details and example IAM policies, see Using * IAM to Manage Access to Amazon SWF Workflows in the Amazon SWF Developer * Guide.

*/ inline RequestCancelExternalWorkflowExecutionFailedEventAttributes& WithCause(RequestCancelExternalWorkflowExecutionFailedCause&& value) { SetCause(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 RequestCancelExternalWorkflowExecutionFailedEventAttributes& WithInitiatedEventId(long long value) { SetInitiatedEventId(value); return *this;} /** *

The ID of the DecisionTaskCompleted event corresponding to the * decision task that resulted in the * RequestCancelExternalWorkflowExecution 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 * RequestCancelExternalWorkflowExecution 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 * RequestCancelExternalWorkflowExecution 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 * RequestCancelExternalWorkflowExecution 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 RequestCancelExternalWorkflowExecutionFailedEventAttributes& WithDecisionTaskCompletedEventId(long long value) { SetDecisionTaskCompletedEventId(value); return *this;} /** *

The data attached to the event that the decider can use in subsequent * workflow tasks. This data isn't sent to the workflow execution.

*/ inline const Aws::String& GetControl() const{ return m_control; } /** *

The data attached to the event that the decider can use in subsequent * workflow tasks. This data isn't sent to the workflow execution.

*/ inline bool ControlHasBeenSet() const { return m_controlHasBeenSet; } /** *

The data attached to the event that the decider can use in subsequent * workflow tasks. This data isn't sent to the workflow execution.

*/ inline void SetControl(const Aws::String& value) { m_controlHasBeenSet = true; m_control = value; } /** *

The data attached to the event that the decider can use in subsequent * workflow tasks. This data isn't sent to the workflow execution.

*/ inline void SetControl(Aws::String&& value) { m_controlHasBeenSet = true; m_control = std::move(value); } /** *

The data attached to the event that the decider can use in subsequent * workflow tasks. This data isn't sent to the workflow execution.

*/ inline void SetControl(const char* value) { m_controlHasBeenSet = true; m_control.assign(value); } /** *

The data attached to the event that the decider can use in subsequent * workflow tasks. This data isn't sent to the workflow execution.

*/ inline RequestCancelExternalWorkflowExecutionFailedEventAttributes& WithControl(const Aws::String& value) { SetControl(value); return *this;} /** *

The data attached to the event that the decider can use in subsequent * workflow tasks. This data isn't sent to the workflow execution.

*/ inline RequestCancelExternalWorkflowExecutionFailedEventAttributes& WithControl(Aws::String&& value) { SetControl(std::move(value)); return *this;} /** *

The data attached to the event that the decider can use in subsequent * workflow tasks. This data isn't sent to the workflow execution.

*/ inline RequestCancelExternalWorkflowExecutionFailedEventAttributes& WithControl(const char* value) { SetControl(value); return *this;} private: Aws::String m_workflowId; bool m_workflowIdHasBeenSet = false; Aws::String m_runId; bool m_runIdHasBeenSet = false; RequestCancelExternalWorkflowExecutionFailedCause m_cause; bool m_causeHasBeenSet = false; long long m_initiatedEventId; bool m_initiatedEventIdHasBeenSet = false; long long m_decisionTaskCompletedEventId; bool m_decisionTaskCompletedEventIdHasBeenSet = false; Aws::String m_control; bool m_controlHasBeenSet = false; }; } // namespace Model } // namespace SWF } // namespace Aws