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

The full description of your service following the create call.

A * service will return either a capacityProviderStrategy or * launchType parameter, but not both, depending where one was * specified when it was created.

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

if the service * uses 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.

A * service will return either a capacityProviderStrategy or * launchType parameter, but not both, depending where one was * specified when it was created.

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

if the service * uses 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.

A * service will return either a capacityProviderStrategy or * launchType parameter, but not both, depending where one was * specified when it was created.

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

if the service * uses 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.

A * service will return either a capacityProviderStrategy or * launchType parameter, but not both, depending where one was * specified when it was created.

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

if the service * uses 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.

A * service will return either a capacityProviderStrategy or * launchType parameter, but not both, depending where one was * specified when it was created.

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

if the service * uses 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;} inline const Aws::String& GetRequestId() const{ return m_requestId; } inline void SetRequestId(const Aws::String& value) { m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestId.assign(value); } inline CreateServiceResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline CreateServiceResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline CreateServiceResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Service m_service; Aws::String m_requestId; }; } // namespace Model } // namespace ECS } // namespace Aws