Interface DetachInstancesRequest.Builder

    • Method Detail

      • instanceIds

        DetachInstancesRequest.Builder instanceIds​(Collection<String> instanceIds)

        The IDs of the instances. You can specify up to 20 instances.

        Parameters:
        instanceIds - The IDs of the instances. You can specify up to 20 instances.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • instanceIds

        DetachInstancesRequest.Builder instanceIds​(String... instanceIds)

        The IDs of the instances. You can specify up to 20 instances.

        Parameters:
        instanceIds - The IDs of the instances. You can specify up to 20 instances.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • autoScalingGroupName

        DetachInstancesRequest.Builder autoScalingGroupName​(String autoScalingGroupName)

        The name of the Auto Scaling group.

        Parameters:
        autoScalingGroupName - The name of the Auto Scaling group.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • shouldDecrementDesiredCapacity

        DetachInstancesRequest.Builder shouldDecrementDesiredCapacity​(Boolean shouldDecrementDesiredCapacity)

        Indicates whether the Auto Scaling group decrements the desired capacity value by the number of instances detached.

        Parameters:
        shouldDecrementDesiredCapacity - Indicates whether the Auto Scaling group decrements the desired capacity value by the number of instances detached.
        Returns:
        Returns a reference to this object so that method calls can be chained together.