/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #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 FailWorkflowExecution decision.

*

Access Control

You can use IAM policies to control this * decision's access to Amazon SWF resources as follows:

  • Use a * Resource element with the domain name to limit the action to only * specified domains.

  • Use an Action element to allow * or deny permission to call this action.

  • You cannot use an IAM * policy to constrain this action's parameters.

If the caller * doesn't have sufficient permissions to invoke the action, or the parameter * values fall outside the specified constraints, the action fails. The associated * event attribute's cause parameter is set to * OPERATION_NOT_PERMITTED. For details and example IAM policies, see * Using * IAM to Manage Access to Amazon SWF Workflows in the Amazon SWF Developer * Guide.

See Also:

AWS * API Reference

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

A descriptive reason for the failure that may help in diagnostics.

*/ inline const Aws::String& GetReason() const{ return m_reason; } /** *

A descriptive reason for the failure that may help in diagnostics.

*/ inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; } /** *

A descriptive reason for the failure that may help in diagnostics.

*/ inline void SetReason(const Aws::String& value) { m_reasonHasBeenSet = true; m_reason = value; } /** *

A descriptive reason for the failure that may help in diagnostics.

*/ inline void SetReason(Aws::String&& value) { m_reasonHasBeenSet = true; m_reason = std::move(value); } /** *

A descriptive reason for the failure that may help in diagnostics.

*/ inline void SetReason(const char* value) { m_reasonHasBeenSet = true; m_reason.assign(value); } /** *

A descriptive reason for the failure that may help in diagnostics.

*/ inline FailWorkflowExecutionDecisionAttributes& WithReason(const Aws::String& value) { SetReason(value); return *this;} /** *

A descriptive reason for the failure that may help in diagnostics.

*/ inline FailWorkflowExecutionDecisionAttributes& WithReason(Aws::String&& value) { SetReason(std::move(value)); return *this;} /** *

A descriptive reason for the failure that may help in diagnostics.

*/ inline FailWorkflowExecutionDecisionAttributes& WithReason(const char* value) { SetReason(value); return *this;} /** *

Details of the failure.

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

Details of the failure.

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

Details of the failure.

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

Details of the failure.

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

Details of the failure.

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

Details of the failure.

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

Details of the failure.

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

Details of the failure.

*/ inline FailWorkflowExecutionDecisionAttributes& WithDetails(const char* value) { SetDetails(value); return *this;} private: Aws::String m_reason; bool m_reasonHasBeenSet = false; Aws::String m_details; bool m_detailsHasBeenSet = false; }; } // namespace Model } // namespace SWF } // namespace Aws