/** * 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 ScheduleLambdaFunctionFailed event. * It isn't set for other event types.

See Also:

AWS * API Reference

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

The ID provided in the ScheduleLambdaFunction decision that * failed.

*/ inline const Aws::String& GetId() const{ return m_id; } /** *

The ID provided in the ScheduleLambdaFunction decision that * failed.

*/ inline bool IdHasBeenSet() const { return m_idHasBeenSet; } /** *

The ID provided in the ScheduleLambdaFunction decision that * failed.

*/ inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; } /** *

The ID provided in the ScheduleLambdaFunction decision that * failed.

*/ inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); } /** *

The ID provided in the ScheduleLambdaFunction decision that * failed.

*/ inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); } /** *

The ID provided in the ScheduleLambdaFunction decision that * failed.

*/ inline ScheduleLambdaFunctionFailedEventAttributes& WithId(const Aws::String& value) { SetId(value); return *this;} /** *

The ID provided in the ScheduleLambdaFunction decision that * failed.

*/ inline ScheduleLambdaFunctionFailedEventAttributes& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;} /** *

The ID provided in the ScheduleLambdaFunction decision that * failed.

*/ inline ScheduleLambdaFunctionFailedEventAttributes& WithId(const char* value) { SetId(value); return *this;} /** *

The name of the Lambda function.

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

The name of the Lambda function.

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

The name of the Lambda function.

*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *

The name of the Lambda function.

*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *

The name of the Lambda function.

*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *

The name of the Lambda function.

*/ inline ScheduleLambdaFunctionFailedEventAttributes& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

The name of the Lambda function.

*/ inline ScheduleLambdaFunctionFailedEventAttributes& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

The name of the Lambda function.

*/ inline ScheduleLambdaFunctionFailedEventAttributes& WithName(const char* value) { SetName(value); return *this;} /** *

The cause of the failure. To help diagnose issues, use this information to * trace back the chain of events leading up to this event.

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 ScheduleLambdaFunctionFailedCause& GetCause() const{ return m_cause; } /** *

The cause of the failure. To help diagnose issues, use this information to * trace back the chain of events leading up to this event.

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. To help diagnose issues, use this information to * trace back the chain of events leading up to this event.

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 ScheduleLambdaFunctionFailedCause& value) { m_causeHasBeenSet = true; m_cause = value; } /** *

The cause of the failure. To help diagnose issues, use this information to * trace back the chain of events leading up to this event.

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(ScheduleLambdaFunctionFailedCause&& value) { m_causeHasBeenSet = true; m_cause = std::move(value); } /** *

The cause of the failure. To help diagnose issues, use this information to * trace back the chain of events leading up to this event.

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 ScheduleLambdaFunctionFailedEventAttributes& WithCause(const ScheduleLambdaFunctionFailedCause& value) { SetCause(value); return *this;} /** *

The cause of the failure. To help diagnose issues, use this information to * trace back the chain of events leading up to this event.

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 ScheduleLambdaFunctionFailedEventAttributes& WithCause(ScheduleLambdaFunctionFailedCause&& value) { SetCause(std::move(value)); return *this;} /** *

The ID of the LambdaFunctionCompleted event corresponding to the * decision that resulted in scheduling this Lambda task. To help diagnose issues, * use this information to trace back the chain of events leading up to this * event.

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

The ID of the LambdaFunctionCompleted event corresponding to the * decision that resulted in scheduling this Lambda task. To help diagnose issues, * use this information to trace back the chain of events leading up to this * event.

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

The ID of the LambdaFunctionCompleted event corresponding to the * decision that resulted in scheduling this Lambda task. To help diagnose issues, * use this information to trace 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 LambdaFunctionCompleted event corresponding to the * decision that resulted in scheduling this Lambda task. To help diagnose issues, * use this information to trace back the chain of events leading up to this * event.

*/ inline ScheduleLambdaFunctionFailedEventAttributes& WithDecisionTaskCompletedEventId(long long value) { SetDecisionTaskCompletedEventId(value); return *this;} private: Aws::String m_id; bool m_idHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; ScheduleLambdaFunctionFailedCause m_cause; bool m_causeHasBeenSet = false; long long m_decisionTaskCompletedEventId; bool m_decisionTaskCompletedEventIdHasBeenSet = false; }; } // namespace Model } // namespace SWF } // namespace Aws