/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace ECS { namespace Model { class AWS_ECS_API StopTaskResult { public: StopTaskResult(); StopTaskResult(const Aws::AmazonWebServiceResult& result); StopTaskResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The task that was stopped.

*/ inline const Task& GetTask() const{ return m_task; } /** *

The task that was stopped.

*/ inline void SetTask(const Task& value) { m_task = value; } /** *

The task that was stopped.

*/ inline void SetTask(Task&& value) { m_task = std::move(value); } /** *

The task that was stopped.

*/ inline StopTaskResult& WithTask(const Task& value) { SetTask(value); return *this;} /** *

The task that was stopped.

*/ inline StopTaskResult& WithTask(Task&& value) { SetTask(std::move(value)); return *this;} private: Task m_task; }; } // namespace Model } // namespace ECS } // namespace Aws