/** * 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 { /** *

Provides the details of the ScheduleActivityTaskFailed * event.

See Also:

AWS * API Reference

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

The activity type provided in the ScheduleActivityTask decision * that failed.

*/ inline const ActivityType& GetActivityType() const{ return m_activityType; } /** *

The activity type provided in the ScheduleActivityTask decision * that failed.

*/ inline bool ActivityTypeHasBeenSet() const { return m_activityTypeHasBeenSet; } /** *

The activity type provided in the ScheduleActivityTask decision * that failed.

*/ inline void SetActivityType(const ActivityType& value) { m_activityTypeHasBeenSet = true; m_activityType = value; } /** *

The activity type provided in the ScheduleActivityTask decision * that failed.

*/ inline void SetActivityType(ActivityType&& value) { m_activityTypeHasBeenSet = true; m_activityType = std::move(value); } /** *

The activity type provided in the ScheduleActivityTask decision * that failed.

*/ inline ScheduleActivityTaskFailedEventAttributes& WithActivityType(const ActivityType& value) { SetActivityType(value); return *this;} /** *

The activity type provided in the ScheduleActivityTask decision * that failed.

*/ inline ScheduleActivityTaskFailedEventAttributes& WithActivityType(ActivityType&& value) { SetActivityType(std::move(value)); return *this;} /** *

The activityId provided in the ScheduleActivityTask decision * that failed.

*/ inline const Aws::String& GetActivityId() const{ return m_activityId; } /** *

The activityId provided in the ScheduleActivityTask decision * that failed.

*/ inline bool ActivityIdHasBeenSet() const { return m_activityIdHasBeenSet; } /** *

The activityId provided in the ScheduleActivityTask decision * that failed.

*/ inline void SetActivityId(const Aws::String& value) { m_activityIdHasBeenSet = true; m_activityId = value; } /** *

The activityId provided in the ScheduleActivityTask decision * that failed.

*/ inline void SetActivityId(Aws::String&& value) { m_activityIdHasBeenSet = true; m_activityId = std::move(value); } /** *

The activityId provided in the ScheduleActivityTask decision * that failed.

*/ inline void SetActivityId(const char* value) { m_activityIdHasBeenSet = true; m_activityId.assign(value); } /** *

The activityId provided in the ScheduleActivityTask decision * that failed.

*/ inline ScheduleActivityTaskFailedEventAttributes& WithActivityId(const Aws::String& value) { SetActivityId(value); return *this;} /** *

The activityId provided in the ScheduleActivityTask decision * that failed.

*/ inline ScheduleActivityTaskFailedEventAttributes& WithActivityId(Aws::String&& value) { SetActivityId(std::move(value)); return *this;} /** *

The activityId provided in the ScheduleActivityTask decision * that failed.

*/ inline ScheduleActivityTaskFailedEventAttributes& WithActivityId(const char* value) { SetActivityId(value); return *this;} /** *

The cause of the failure. This information is generated by the system and can * be useful for diagnostic purposes.

If cause is set to * OPERATION_NOT_PERMITTED, the decision failed because it lacked * sufficient permissions. For details and example IAM policies, see Using * IAM to Manage Access to Amazon SWF Workflows in the Amazon SWF Developer * Guide.

*/ inline const ScheduleActivityTaskFailedCause& GetCause() const{ return m_cause; } /** *

The cause of the failure. This information is generated by the system and can * be useful for diagnostic purposes.

If cause is set to * OPERATION_NOT_PERMITTED, the decision failed because it lacked * sufficient permissions. For details and example IAM policies, see Using * IAM to Manage Access to Amazon SWF Workflows in the Amazon SWF Developer * Guide.

*/ inline bool CauseHasBeenSet() const { return m_causeHasBeenSet; } /** *

The cause of the failure. This information is generated by the system and can * be useful for diagnostic purposes.

If cause is set to * OPERATION_NOT_PERMITTED, the decision failed because it lacked * sufficient permissions. For details and example IAM policies, see Using * IAM to Manage Access to Amazon SWF Workflows in the Amazon SWF Developer * Guide.

*/ inline void SetCause(const ScheduleActivityTaskFailedCause& value) { m_causeHasBeenSet = true; m_cause = value; } /** *

The cause of the failure. This information is generated by the system and can * be useful for diagnostic purposes.

If cause is set to * OPERATION_NOT_PERMITTED, the decision failed because it lacked * sufficient permissions. For details and example IAM policies, see Using * IAM to Manage Access to Amazon SWF Workflows in the Amazon SWF Developer * Guide.

*/ inline void SetCause(ScheduleActivityTaskFailedCause&& value) { m_causeHasBeenSet = true; m_cause = std::move(value); } /** *

The cause of the failure. This information is generated by the system and can * be useful for diagnostic purposes.

If cause is set to * OPERATION_NOT_PERMITTED, the decision failed because it lacked * sufficient permissions. For details and example IAM policies, see Using * IAM to Manage Access to Amazon SWF Workflows in the Amazon SWF Developer * Guide.

*/ inline ScheduleActivityTaskFailedEventAttributes& WithCause(const ScheduleActivityTaskFailedCause& value) { SetCause(value); return *this;} /** *

The cause of the failure. This information is generated by the system and can * be useful for diagnostic purposes.

If cause is set to * OPERATION_NOT_PERMITTED, the decision failed because it lacked * sufficient permissions. For details and example IAM policies, see Using * IAM to Manage Access to Amazon SWF Workflows in the Amazon SWF Developer * Guide.

*/ inline ScheduleActivityTaskFailedEventAttributes& WithCause(ScheduleActivityTaskFailedCause&& value) { SetCause(std::move(value)); return *this;} /** *

The ID of the DecisionTaskCompleted event corresponding to the * decision that resulted in the scheduling of this activity task. This information * can be useful for diagnosing problems by tracing back the chain of events * leading up to this event.

*/ inline long long GetDecisionTaskCompletedEventId() const{ return m_decisionTaskCompletedEventId; } /** *

The ID of the DecisionTaskCompleted event corresponding to the * decision that resulted in the scheduling of this activity task. This information * can be useful for diagnosing problems by tracing back the chain of events * leading up to this event.

*/ inline bool DecisionTaskCompletedEventIdHasBeenSet() const { return m_decisionTaskCompletedEventIdHasBeenSet; } /** *

The ID of the DecisionTaskCompleted event corresponding to the * decision that resulted in the scheduling of this activity task. This information * can be useful for diagnosing problems by tracing back the chain of events * leading up to this event.

*/ inline void SetDecisionTaskCompletedEventId(long long value) { m_decisionTaskCompletedEventIdHasBeenSet = true; m_decisionTaskCompletedEventId = value; } /** *

The ID of the DecisionTaskCompleted event corresponding to the * decision that resulted in the scheduling of this activity task. This information * can be useful for diagnosing problems by tracing back the chain of events * leading up to this event.

*/ inline ScheduleActivityTaskFailedEventAttributes& WithDecisionTaskCompletedEventId(long long value) { SetDecisionTaskCompletedEventId(value); return *this;} private: ActivityType m_activityType; bool m_activityTypeHasBeenSet = false; Aws::String m_activityId; bool m_activityIdHasBeenSet = false; ScheduleActivityTaskFailedCause m_cause; bool m_causeHasBeenSet = false; long long m_decisionTaskCompletedEventId; bool m_decisionTaskCompletedEventIdHasBeenSet = false; }; } // namespace Model } // namespace SWF } // namespace Aws