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

See Also:

AWS * API Reference

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

The name of the signal received. The decider can use the signal name and * inputs to determine how to the process the signal.

*/ inline const Aws::String& GetSignalName() const{ return m_signalName; } /** *

The name of the signal received. The decider can use the signal name and * inputs to determine how to the process the signal.

*/ inline bool SignalNameHasBeenSet() const { return m_signalNameHasBeenSet; } /** *

The name of the signal received. The decider can use the signal name and * inputs to determine how to the process the signal.

*/ inline void SetSignalName(const Aws::String& value) { m_signalNameHasBeenSet = true; m_signalName = value; } /** *

The name of the signal received. The decider can use the signal name and * inputs to determine how to the process the signal.

*/ inline void SetSignalName(Aws::String&& value) { m_signalNameHasBeenSet = true; m_signalName = std::move(value); } /** *

The name of the signal received. The decider can use the signal name and * inputs to determine how to the process the signal.

*/ inline void SetSignalName(const char* value) { m_signalNameHasBeenSet = true; m_signalName.assign(value); } /** *

The name of the signal received. The decider can use the signal name and * inputs to determine how to the process the signal.

*/ inline WorkflowExecutionSignaledEventAttributes& WithSignalName(const Aws::String& value) { SetSignalName(value); return *this;} /** *

The name of the signal received. The decider can use the signal name and * inputs to determine how to the process the signal.

*/ inline WorkflowExecutionSignaledEventAttributes& WithSignalName(Aws::String&& value) { SetSignalName(std::move(value)); return *this;} /** *

The name of the signal received. The decider can use the signal name and * inputs to determine how to the process the signal.

*/ inline WorkflowExecutionSignaledEventAttributes& WithSignalName(const char* value) { SetSignalName(value); return *this;} /** *

The inputs provided with the signal. The decider can use the signal name and * inputs to determine how to process the signal.

*/ inline const Aws::String& GetInput() const{ return m_input; } /** *

The inputs provided with the signal. The decider can use the signal name and * inputs to determine how to process the signal.

*/ inline bool InputHasBeenSet() const { return m_inputHasBeenSet; } /** *

The inputs provided with the signal. The decider can use the signal name and * inputs to determine how to process the signal.

*/ inline void SetInput(const Aws::String& value) { m_inputHasBeenSet = true; m_input = value; } /** *

The inputs provided with the signal. The decider can use the signal name and * inputs to determine how to process the signal.

*/ inline void SetInput(Aws::String&& value) { m_inputHasBeenSet = true; m_input = std::move(value); } /** *

The inputs provided with the signal. The decider can use the signal name and * inputs to determine how to process the signal.

*/ inline void SetInput(const char* value) { m_inputHasBeenSet = true; m_input.assign(value); } /** *

The inputs provided with the signal. The decider can use the signal name and * inputs to determine how to process the signal.

*/ inline WorkflowExecutionSignaledEventAttributes& WithInput(const Aws::String& value) { SetInput(value); return *this;} /** *

The inputs provided with the signal. The decider can use the signal name and * inputs to determine how to process the signal.

*/ inline WorkflowExecutionSignaledEventAttributes& WithInput(Aws::String&& value) { SetInput(std::move(value)); return *this;} /** *

The inputs provided with the signal. The decider can use the signal name and * inputs to determine how to process the signal.

*/ inline WorkflowExecutionSignaledEventAttributes& WithInput(const char* value) { SetInput(value); return *this;} /** *

The workflow execution that sent the signal. This is set only of the signal * was sent by another workflow execution.

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

The workflow execution that sent the signal. This is set only of the signal * was sent by another workflow execution.

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

The workflow execution that sent the signal. This is set only of the signal * was sent by another workflow execution.

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

The workflow execution that sent the signal. This is set only of the signal * was sent by another workflow execution.

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

The workflow execution that sent the signal. This is set only of the signal * was sent by another workflow execution.

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

The workflow execution that sent the signal. This is set only of the signal * was sent by another workflow execution.

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

The ID of the SignalExternalWorkflowExecutionInitiated event * corresponding to the SignalExternalWorkflow decision to signal 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. This * field is set only if the signal was initiated by another workflow execution.

*/ inline long long GetExternalInitiatedEventId() const{ return m_externalInitiatedEventId; } /** *

The ID of the SignalExternalWorkflowExecutionInitiated event * corresponding to the SignalExternalWorkflow decision to signal 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. This * field is set only if the signal was initiated by another workflow execution.

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

The ID of the SignalExternalWorkflowExecutionInitiated event * corresponding to the SignalExternalWorkflow decision to signal 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. This * field is set only if the signal was initiated by another workflow execution.

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

The ID of the SignalExternalWorkflowExecutionInitiated event * corresponding to the SignalExternalWorkflow decision to signal 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. This * field is set only if the signal was initiated by another workflow execution.

*/ inline WorkflowExecutionSignaledEventAttributes& WithExternalInitiatedEventId(long long value) { SetExternalInitiatedEventId(value); return *this;} private: Aws::String m_signalName; bool m_signalNameHasBeenSet = false; Aws::String m_input; bool m_inputHasBeenSet = false; WorkflowExecution m_externalWorkflowExecution; bool m_externalWorkflowExecutionHasBeenSet = false; long long m_externalInitiatedEventId; bool m_externalInitiatedEventIdHasBeenSet = false; }; } // namespace Model } // namespace SWF } // namespace Aws