Interface DeleteServiceRequest.Builder

    • Method Detail

      • cluster

        DeleteServiceRequest.Builder cluster​(String 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.

        Parameters:
        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.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • service

        DeleteServiceRequest.Builder service​(String service)

        The name of the service to delete.

        Parameters:
        service - The name of the service to delete.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • force

        DeleteServiceRequest.Builder force​(Boolean 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.

        Parameters:
        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.
        Returns:
        Returns a reference to this object so that method calls can be chained together.