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

Contains details about the start of an activity during an * execution.

See Also:

AWS * API Reference

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

The name of the worker that the task is assigned to. These names are provided * by the workers when calling GetActivityTask.

*/ inline const Aws::String& GetWorkerName() const{ return m_workerName; } /** *

The name of the worker that the task is assigned to. These names are provided * by the workers when calling GetActivityTask.

*/ inline bool WorkerNameHasBeenSet() const { return m_workerNameHasBeenSet; } /** *

The name of the worker that the task is assigned to. These names are provided * by the workers when calling GetActivityTask.

*/ inline void SetWorkerName(const Aws::String& value) { m_workerNameHasBeenSet = true; m_workerName = value; } /** *

The name of the worker that the task is assigned to. These names are provided * by the workers when calling GetActivityTask.

*/ inline void SetWorkerName(Aws::String&& value) { m_workerNameHasBeenSet = true; m_workerName = std::move(value); } /** *

The name of the worker that the task is assigned to. These names are provided * by the workers when calling GetActivityTask.

*/ inline void SetWorkerName(const char* value) { m_workerNameHasBeenSet = true; m_workerName.assign(value); } /** *

The name of the worker that the task is assigned to. These names are provided * by the workers when calling GetActivityTask.

*/ inline ActivityStartedEventDetails& WithWorkerName(const Aws::String& value) { SetWorkerName(value); return *this;} /** *

The name of the worker that the task is assigned to. These names are provided * by the workers when calling GetActivityTask.

*/ inline ActivityStartedEventDetails& WithWorkerName(Aws::String&& value) { SetWorkerName(std::move(value)); return *this;} /** *

The name of the worker that the task is assigned to. These names are provided * by the workers when calling GetActivityTask.

*/ inline ActivityStartedEventDetails& WithWorkerName(const char* value) { SetWorkerName(value); return *this;} private: Aws::String m_workerName; bool m_workerNameHasBeenSet = false; }; } // namespace Model } // namespace SFN } // namespace Aws