/** * 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 ECS { namespace Model { /** */ class DeleteServiceRequest : public ECSRequest { public: AWS_ECS_API DeleteServiceRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "DeleteService"; } AWS_ECS_API Aws::String SerializePayload() const override; AWS_ECS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The short name or full Amazon Resource Name (ARN) of the cluster that hosts * the service to delete. If you do not specify a cluster, the default cluster is * assumed.

*/ inline const Aws::String& GetCluster() const{ return m_cluster; } /** *

The short name or full Amazon Resource Name (ARN) of the cluster that hosts * the service to delete. If you do not specify a cluster, the default cluster is * assumed.

*/ inline bool ClusterHasBeenSet() const { return m_clusterHasBeenSet; } /** *

The short name or full Amazon Resource Name (ARN) of the cluster that hosts * the service to delete. If you do not specify a cluster, the default cluster is * assumed.

*/ inline void SetCluster(const Aws::String& value) { m_clusterHasBeenSet = true; m_cluster = value; } /** *

The short name or full Amazon Resource Name (ARN) of the cluster that hosts * the service to delete. If you do not specify a cluster, the default cluster is * assumed.

*/ inline void SetCluster(Aws::String&& value) { m_clusterHasBeenSet = true; m_cluster = std::move(value); } /** *

The short name or full Amazon Resource Name (ARN) of the cluster that hosts * the service to delete. If you do not specify a cluster, the default cluster is * assumed.

*/ inline void SetCluster(const char* value) { m_clusterHasBeenSet = true; m_cluster.assign(value); } /** *

The short name or full Amazon Resource Name (ARN) of the cluster that hosts * the service to delete. If you do not specify a cluster, the default cluster is * assumed.

*/ inline DeleteServiceRequest& WithCluster(const Aws::String& value) { SetCluster(value); return *this;} /** *

The short name or full Amazon Resource Name (ARN) of the cluster that hosts * the service to delete. If you do not specify a cluster, the default cluster is * assumed.

*/ inline DeleteServiceRequest& WithCluster(Aws::String&& value) { SetCluster(std::move(value)); return *this;} /** *

The short name or full Amazon Resource Name (ARN) of the cluster that hosts * the service to delete. If you do not specify a cluster, the default cluster is * assumed.

*/ inline DeleteServiceRequest& WithCluster(const char* value) { SetCluster(value); return *this;} /** *

The name of the service to delete.

*/ inline const Aws::String& GetService() const{ return m_service; } /** *

The name of the service to delete.

*/ inline bool ServiceHasBeenSet() const { return m_serviceHasBeenSet; } /** *

The name of the service to delete.

*/ inline void SetService(const Aws::String& value) { m_serviceHasBeenSet = true; m_service = value; } /** *

The name of the service to delete.

*/ inline void SetService(Aws::String&& value) { m_serviceHasBeenSet = true; m_service = std::move(value); } /** *

The name of the service to delete.

*/ inline void SetService(const char* value) { m_serviceHasBeenSet = true; m_service.assign(value); } /** *

The name of the service to delete.

*/ inline DeleteServiceRequest& WithService(const Aws::String& value) { SetService(value); return *this;} /** *

The name of the service to delete.

*/ inline DeleteServiceRequest& WithService(Aws::String&& value) { SetService(std::move(value)); return *this;} /** *

The name of the service to delete.

*/ inline DeleteServiceRequest& WithService(const char* value) { SetService(value); return *this;} /** *

If true, allows you to delete a service even if it wasn't scaled * down to zero tasks. It's only necessary to use this if the service uses the * REPLICA scheduling strategy.

*/ inline bool GetForce() const{ return m_force; } /** *

If true, allows you to delete a service even if it wasn't scaled * down to zero tasks. It's only necessary to use this if the service uses the * REPLICA scheduling strategy.

*/ inline bool ForceHasBeenSet() const { return m_forceHasBeenSet; } /** *

If true, allows you to delete a service even if it wasn't scaled * down to zero tasks. It's only necessary to use this if the service uses the * REPLICA scheduling strategy.

*/ inline void SetForce(bool value) { m_forceHasBeenSet = true; m_force = value; } /** *

If true, allows you to delete a service even if it wasn't scaled * down to zero tasks. It's only necessary to use this if the service uses the * REPLICA scheduling strategy.

*/ inline DeleteServiceRequest& WithForce(bool value) { SetForce(value); return *this;} private: Aws::String m_cluster; bool m_clusterHasBeenSet = false; Aws::String m_service; bool m_serviceHasBeenSet = false; bool m_force; bool m_forceHasBeenSet = false; }; } // namespace Model } // namespace ECS } // namespace Aws