/** * 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 SFN { namespace Model { /** *

Contains details about the successful completion of a task * state.

See Also:

AWS * API Reference

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

The service name of the resource in a task state.

*/ inline const Aws::String& GetResourceType() const{ return m_resourceType; } /** *

The service name of the resource in a task state.

*/ inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; } /** *

The service name of the resource in a task state.

*/ inline void SetResourceType(const Aws::String& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; } /** *

The service name of the resource in a task state.

*/ inline void SetResourceType(Aws::String&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); } /** *

The service name of the resource in a task state.

*/ inline void SetResourceType(const char* value) { m_resourceTypeHasBeenSet = true; m_resourceType.assign(value); } /** *

The service name of the resource in a task state.

*/ inline TaskSucceededEventDetails& WithResourceType(const Aws::String& value) { SetResourceType(value); return *this;} /** *

The service name of the resource in a task state.

*/ inline TaskSucceededEventDetails& WithResourceType(Aws::String&& value) { SetResourceType(std::move(value)); return *this;} /** *

The service name of the resource in a task state.

*/ inline TaskSucceededEventDetails& WithResourceType(const char* value) { SetResourceType(value); return *this;} /** *

The action of the resource called by a task state.

*/ inline const Aws::String& GetResource() const{ return m_resource; } /** *

The action of the resource called by a task state.

*/ inline bool ResourceHasBeenSet() const { return m_resourceHasBeenSet; } /** *

The action of the resource called by a task state.

*/ inline void SetResource(const Aws::String& value) { m_resourceHasBeenSet = true; m_resource = value; } /** *

The action of the resource called by a task state.

*/ inline void SetResource(Aws::String&& value) { m_resourceHasBeenSet = true; m_resource = std::move(value); } /** *

The action of the resource called by a task state.

*/ inline void SetResource(const char* value) { m_resourceHasBeenSet = true; m_resource.assign(value); } /** *

The action of the resource called by a task state.

*/ inline TaskSucceededEventDetails& WithResource(const Aws::String& value) { SetResource(value); return *this;} /** *

The action of the resource called by a task state.

*/ inline TaskSucceededEventDetails& WithResource(Aws::String&& value) { SetResource(std::move(value)); return *this;} /** *

The action of the resource called by a task state.

*/ inline TaskSucceededEventDetails& WithResource(const char* value) { SetResource(value); return *this;} /** *

The full JSON response from a resource when a task has succeeded. This * response becomes the output of the related task. Length constraints apply to the * payload size, and are expressed as bytes in UTF-8 encoding.

*/ inline const Aws::String& GetOutput() const{ return m_output; } /** *

The full JSON response from a resource when a task has succeeded. This * response becomes the output of the related task. Length constraints apply to the * payload size, and are expressed as bytes in UTF-8 encoding.

*/ inline bool OutputHasBeenSet() const { return m_outputHasBeenSet; } /** *

The full JSON response from a resource when a task has succeeded. This * response becomes the output of the related task. Length constraints apply to the * payload size, and are expressed as bytes in UTF-8 encoding.

*/ inline void SetOutput(const Aws::String& value) { m_outputHasBeenSet = true; m_output = value; } /** *

The full JSON response from a resource when a task has succeeded. This * response becomes the output of the related task. Length constraints apply to the * payload size, and are expressed as bytes in UTF-8 encoding.

*/ inline void SetOutput(Aws::String&& value) { m_outputHasBeenSet = true; m_output = std::move(value); } /** *

The full JSON response from a resource when a task has succeeded. This * response becomes the output of the related task. Length constraints apply to the * payload size, and are expressed as bytes in UTF-8 encoding.

*/ inline void SetOutput(const char* value) { m_outputHasBeenSet = true; m_output.assign(value); } /** *

The full JSON response from a resource when a task has succeeded. This * response becomes the output of the related task. Length constraints apply to the * payload size, and are expressed as bytes in UTF-8 encoding.

*/ inline TaskSucceededEventDetails& WithOutput(const Aws::String& value) { SetOutput(value); return *this;} /** *

The full JSON response from a resource when a task has succeeded. This * response becomes the output of the related task. Length constraints apply to the * payload size, and are expressed as bytes in UTF-8 encoding.

*/ inline TaskSucceededEventDetails& WithOutput(Aws::String&& value) { SetOutput(std::move(value)); return *this;} /** *

The full JSON response from a resource when a task has succeeded. This * response becomes the output of the related task. Length constraints apply to the * payload size, and are expressed as bytes in UTF-8 encoding.

*/ inline TaskSucceededEventDetails& WithOutput(const char* value) { SetOutput(value); return *this;} /** *

Contains details about the output of an execution history event.

*/ inline const HistoryEventExecutionDataDetails& GetOutputDetails() const{ return m_outputDetails; } /** *

Contains details about the output of an execution history event.

*/ inline bool OutputDetailsHasBeenSet() const { return m_outputDetailsHasBeenSet; } /** *

Contains details about the output of an execution history event.

*/ inline void SetOutputDetails(const HistoryEventExecutionDataDetails& value) { m_outputDetailsHasBeenSet = true; m_outputDetails = value; } /** *

Contains details about the output of an execution history event.

*/ inline void SetOutputDetails(HistoryEventExecutionDataDetails&& value) { m_outputDetailsHasBeenSet = true; m_outputDetails = std::move(value); } /** *

Contains details about the output of an execution history event.

*/ inline TaskSucceededEventDetails& WithOutputDetails(const HistoryEventExecutionDataDetails& value) { SetOutputDetails(value); return *this;} /** *

Contains details about the output of an execution history event.

*/ inline TaskSucceededEventDetails& WithOutputDetails(HistoryEventExecutionDataDetails&& value) { SetOutputDetails(std::move(value)); return *this;} private: Aws::String m_resourceType; bool m_resourceTypeHasBeenSet = false; Aws::String m_resource; bool m_resourceHasBeenSet = false; Aws::String m_output; bool m_outputHasBeenSet = false; HistoryEventExecutionDataDetails m_outputDetails; bool m_outputDetailsHasBeenSet = false; }; } // namespace Model } // namespace SFN } // namespace Aws