/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include <aws/swf/SWF_EXPORTS.h> #include <aws/core/utils/memory/stl/AWSString.h> #include <utility> namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace SWF { namespace Model { /** * <p>Provides the details of the <code>WorkflowExecutionCompleted</code> * event.</p><p><h3>See Also:</h3> <a * href="http://docs.aws.amazon.com/goto/WebAPI/swf-2012-01-25/WorkflowExecutionCompletedEventAttributes">AWS * API Reference</a></p> */ class WorkflowExecutionCompletedEventAttributes { public: AWS_SWF_API WorkflowExecutionCompletedEventAttributes(); AWS_SWF_API WorkflowExecutionCompletedEventAttributes(Aws::Utils::Json::JsonView jsonValue); AWS_SWF_API WorkflowExecutionCompletedEventAttributes& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_SWF_API Aws::Utils::Json::JsonValue Jsonize() const; /** * <p>The result produced by the workflow execution upon successful completion.</p> */ inline const Aws::String& GetResult() const{ return m_result; } /** * <p>The result produced by the workflow execution upon successful completion.</p> */ inline bool ResultHasBeenSet() const { return m_resultHasBeenSet; } /** * <p>The result produced by the workflow execution upon successful completion.</p> */ inline void SetResult(const Aws::String& value) { m_resultHasBeenSet = true; m_result = value; } /** * <p>The result produced by the workflow execution upon successful completion.</p> */ inline void SetResult(Aws::String&& value) { m_resultHasBeenSet = true; m_result = std::move(value); } /** * <p>The result produced by the workflow execution upon successful completion.</p> */ inline void SetResult(const char* value) { m_resultHasBeenSet = true; m_result.assign(value); } /** * <p>The result produced by the workflow execution upon successful completion.</p> */ inline WorkflowExecutionCompletedEventAttributes& WithResult(const Aws::String& value) { SetResult(value); return *this;} /** * <p>The result produced by the workflow execution upon successful completion.</p> */ inline WorkflowExecutionCompletedEventAttributes& WithResult(Aws::String&& value) { SetResult(std::move(value)); return *this;} /** * <p>The result produced by the workflow execution upon successful completion.</p> */ inline WorkflowExecutionCompletedEventAttributes& WithResult(const char* value) { SetResult(value); return *this;} /** * <p>The ID of the <code>DecisionTaskCompleted</code> event corresponding to the * decision task that resulted in the <code>CompleteWorkflowExecution</code> * decision to complete this execution. This information can be useful for * diagnosing problems by tracing back the chain of events leading up to this * event.</p> */ inline long long GetDecisionTaskCompletedEventId() const{ return m_decisionTaskCompletedEventId; } /** * <p>The ID of the <code>DecisionTaskCompleted</code> event corresponding to the * decision task that resulted in the <code>CompleteWorkflowExecution</code> * decision to complete this execution. This information can be useful for * diagnosing problems by tracing back the chain of events leading up to this * event.</p> */ inline bool DecisionTaskCompletedEventIdHasBeenSet() const { return m_decisionTaskCompletedEventIdHasBeenSet; } /** * <p>The ID of the <code>DecisionTaskCompleted</code> event corresponding to the * decision task that resulted in the <code>CompleteWorkflowExecution</code> * decision to complete this execution. This information can be useful for * diagnosing problems by tracing back the chain of events leading up to this * event.</p> */ inline void SetDecisionTaskCompletedEventId(long long value) { m_decisionTaskCompletedEventIdHasBeenSet = true; m_decisionTaskCompletedEventId = value; } /** * <p>The ID of the <code>DecisionTaskCompleted</code> event corresponding to the * decision task that resulted in the <code>CompleteWorkflowExecution</code> * decision to complete this execution. This information can be useful for * diagnosing problems by tracing back the chain of events leading up to this * event.</p> */ inline WorkflowExecutionCompletedEventAttributes& WithDecisionTaskCompletedEventId(long long value) { SetDecisionTaskCompletedEventId(value); return *this;} private: Aws::String m_result; bool m_resultHasBeenSet = false; long long m_decisionTaskCompletedEventId; bool m_decisionTaskCompletedEventIdHasBeenSet = false; }; } // namespace Model } // namespace SWF } // namespace Aws