/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace SWF { namespace Model { /** *

Provide details of the ChildWorkflowExecutionCanceled * event.

See Also:

AWS * API Reference

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

The child workflow execution that was canceled.

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

The child workflow execution that was canceled.

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

The child workflow execution that was canceled.

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

The child workflow execution that was canceled.

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

The child workflow execution that was canceled.

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

The child workflow execution that was canceled.

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

The type of the child workflow execution.

*/ inline const WorkflowType& GetWorkflowType() const{ return m_workflowType; } /** *

The type of the child workflow execution.

*/ inline bool WorkflowTypeHasBeenSet() const { return m_workflowTypeHasBeenSet; } /** *

The type of the child workflow execution.

*/ inline void SetWorkflowType(const WorkflowType& value) { m_workflowTypeHasBeenSet = true; m_workflowType = value; } /** *

The type of the child workflow execution.

*/ inline void SetWorkflowType(WorkflowType&& value) { m_workflowTypeHasBeenSet = true; m_workflowType = std::move(value); } /** *

The type of the child workflow execution.

*/ inline ChildWorkflowExecutionCanceledEventAttributes& WithWorkflowType(const WorkflowType& value) { SetWorkflowType(value); return *this;} /** *

The type of the child workflow execution.

*/ inline ChildWorkflowExecutionCanceledEventAttributes& WithWorkflowType(WorkflowType&& value) { SetWorkflowType(std::move(value)); return *this;} /** *

Details of the cancellation (if provided).

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

Details of the cancellation (if provided).

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

Details of the cancellation (if provided).

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

Details of the cancellation (if provided).

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

Details of the cancellation (if provided).

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

Details of the cancellation (if provided).

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

Details of the cancellation (if provided).

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

Details of the cancellation (if provided).

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

The ID of the StartChildWorkflowExecutionInitiated event * corresponding to the StartChildWorkflowExecution Decision to * start this child 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 StartChildWorkflowExecutionInitiated event * corresponding to the StartChildWorkflowExecution Decision to * start this child 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 StartChildWorkflowExecutionInitiated event * corresponding to the StartChildWorkflowExecution Decision to * start this child 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 StartChildWorkflowExecutionInitiated event * corresponding to the StartChildWorkflowExecution Decision to * start this child workflow execution. This information can be useful for * diagnosing problems by tracing back the chain of events leading up to this * event.

*/ inline ChildWorkflowExecutionCanceledEventAttributes& WithInitiatedEventId(long long value) { SetInitiatedEventId(value); return *this;} /** *

The ID of the ChildWorkflowExecutionStarted event recorded when * this child workflow execution was started. This information can be useful for * diagnosing problems by tracing back the chain of events leading up to this * event.

*/ inline long long GetStartedEventId() const{ return m_startedEventId; } /** *

The ID of the ChildWorkflowExecutionStarted event recorded when * this child workflow execution was started. This information can be useful for * diagnosing problems by tracing back the chain of events leading up to this * event.

*/ inline bool StartedEventIdHasBeenSet() const { return m_startedEventIdHasBeenSet; } /** *

The ID of the ChildWorkflowExecutionStarted event recorded when * this child workflow execution was started. This information can be useful for * diagnosing problems by tracing back the chain of events leading up to this * event.

*/ inline void SetStartedEventId(long long value) { m_startedEventIdHasBeenSet = true; m_startedEventId = value; } /** *

The ID of the ChildWorkflowExecutionStarted event recorded when * this child workflow execution was started. This information can be useful for * diagnosing problems by tracing back the chain of events leading up to this * event.

*/ inline ChildWorkflowExecutionCanceledEventAttributes& WithStartedEventId(long long value) { SetStartedEventId(value); return *this;} private: WorkflowExecution m_workflowExecution; bool m_workflowExecutionHasBeenSet = false; WorkflowType m_workflowType; bool m_workflowTypeHasBeenSet = false; Aws::String m_details; bool m_detailsHasBeenSet = false; long long m_initiatedEventId; bool m_initiatedEventIdHasBeenSet = false; long long m_startedEventId; bool m_startedEventIdHasBeenSet = false; }; } // namespace Model } // namespace SWF } // namespace Aws