/** * 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>WorkflowExecutionFailed</code> * event.</p><p><h3>See Also:</h3> <a * href="http://docs.aws.amazon.com/goto/WebAPI/swf-2012-01-25/WorkflowExecutionFailedEventAttributes">AWS * API Reference</a></p> */ class WorkflowExecutionFailedEventAttributes { public: AWS_SWF_API WorkflowExecutionFailedEventAttributes(); AWS_SWF_API WorkflowExecutionFailedEventAttributes(Aws::Utils::Json::JsonView jsonValue); AWS_SWF_API WorkflowExecutionFailedEventAttributes& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_SWF_API Aws::Utils::Json::JsonValue Jsonize() const; /** * <p>The descriptive reason provided for the failure.</p> */ inline const Aws::String& GetReason() const{ return m_reason; } /** * <p>The descriptive reason provided for the failure.</p> */ inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; } /** * <p>The descriptive reason provided for the failure.</p> */ inline void SetReason(const Aws::String& value) { m_reasonHasBeenSet = true; m_reason = value; } /** * <p>The descriptive reason provided for the failure.</p> */ inline void SetReason(Aws::String&& value) { m_reasonHasBeenSet = true; m_reason = std::move(value); } /** * <p>The descriptive reason provided for the failure.</p> */ inline void SetReason(const char* value) { m_reasonHasBeenSet = true; m_reason.assign(value); } /** * <p>The descriptive reason provided for the failure.</p> */ inline WorkflowExecutionFailedEventAttributes& WithReason(const Aws::String& value) { SetReason(value); return *this;} /** * <p>The descriptive reason provided for the failure.</p> */ inline WorkflowExecutionFailedEventAttributes& WithReason(Aws::String&& value) { SetReason(std::move(value)); return *this;} /** * <p>The descriptive reason provided for the failure.</p> */ inline WorkflowExecutionFailedEventAttributes& WithReason(const char* value) { SetReason(value); return *this;} /** * <p>The details of the failure.</p> */ inline const Aws::String& GetDetails() const{ return m_details; } /** * <p>The details of the failure.</p> */ inline bool DetailsHasBeenSet() const { return m_detailsHasBeenSet; } /** * <p>The details of the failure.</p> */ inline void SetDetails(const Aws::String& value) { m_detailsHasBeenSet = true; m_details = value; } /** * <p>The details of the failure.</p> */ inline void SetDetails(Aws::String&& value) { m_detailsHasBeenSet = true; m_details = std::move(value); } /** * <p>The details of the failure.</p> */ inline void SetDetails(const char* value) { m_detailsHasBeenSet = true; m_details.assign(value); } /** * <p>The details of the failure.</p> */ inline WorkflowExecutionFailedEventAttributes& WithDetails(const Aws::String& value) { SetDetails(value); return *this;} /** * <p>The details of the failure.</p> */ inline WorkflowExecutionFailedEventAttributes& WithDetails(Aws::String&& value) { SetDetails(std::move(value)); return *this;} /** * <p>The details of the failure.</p> */ inline WorkflowExecutionFailedEventAttributes& WithDetails(const char* value) { SetDetails(value); return *this;} /** * <p>The ID of the <code>DecisionTaskCompleted</code> event corresponding to the * decision task that resulted in the <code>FailWorkflowExecution</code> decision * to fail 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>FailWorkflowExecution</code> decision * to fail 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>FailWorkflowExecution</code> decision * to fail 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>FailWorkflowExecution</code> decision * to fail this execution. This information can be useful for diagnosing problems * by tracing back the chain of events leading up to this event.</p> */ inline WorkflowExecutionFailedEventAttributes& WithDecisionTaskCompletedEventId(long long value) { SetDecisionTaskCompletedEventId(value); return *this;} private: Aws::String m_reason; bool m_reasonHasBeenSet = false; Aws::String m_details; bool m_detailsHasBeenSet = false; long long m_decisionTaskCompletedEventId; bool m_decisionTaskCompletedEventIdHasBeenSet = false; }; } // namespace Model } // namespace SWF } // namespace Aws