/** * 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 CreateServiceResult { public: CreateServiceResult(); CreateServiceResult(const Aws::AmazonWebServiceResult& result); CreateServiceResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The full description of your service following the create call.

If a * service is using the ECS deployment controller, the * deploymentController and taskSets parameters will not * be returned.

If the service is using the CODE_DEPLOY * deployment controller, the deploymentController, * taskSets and deployments parameters will be returned, * however the deployments parameter will be an empty list.

*/ inline const Service& GetService() const{ return m_service; } /** *

The full description of your service following the create call.

If a * service is using the ECS deployment controller, the * deploymentController and taskSets parameters will not * be returned.

If the service is using the CODE_DEPLOY * deployment controller, the deploymentController, * taskSets and deployments parameters will be returned, * however the deployments parameter will be an empty list.

*/ inline void SetService(const Service& value) { m_service = value; } /** *

The full description of your service following the create call.

If a * service is using the ECS deployment controller, the * deploymentController and taskSets parameters will not * be returned.

If the service is using the CODE_DEPLOY * deployment controller, the deploymentController, * taskSets and deployments parameters will be returned, * however the deployments parameter will be an empty list.

*/ inline void SetService(Service&& value) { m_service = std::move(value); } /** *

The full description of your service following the create call.

If a * service is using the ECS deployment controller, the * deploymentController and taskSets parameters will not * be returned.

If the service is using the CODE_DEPLOY * deployment controller, the deploymentController, * taskSets and deployments parameters will be returned, * however the deployments parameter will be an empty list.

*/ inline CreateServiceResult& WithService(const Service& value) { SetService(value); return *this;} /** *

The full description of your service following the create call.

If a * service is using the ECS deployment controller, the * deploymentController and taskSets parameters will not * be returned.

If the service is using the CODE_DEPLOY * deployment controller, the deploymentController, * taskSets and deployments parameters will be returned, * however the deployments parameter will be an empty list.

*/ inline CreateServiceResult& WithService(Service&& value) { SetService(std::move(value)); return *this;} private: Service m_service; }; } // namespace Model } // namespace ECS } // namespace Aws