Interface InstanceResizePolicy.Builder

    • Method Detail

      • instancesToTerminate

        InstanceResizePolicy.Builder instancesToTerminate​(Collection<String> instancesToTerminate)

        Specific list of instances to be terminated when shrinking an instance group.

        Parameters:
        instancesToTerminate - Specific list of instances to be terminated when shrinking an instance group.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • instancesToTerminate

        InstanceResizePolicy.Builder instancesToTerminate​(String... instancesToTerminate)

        Specific list of instances to be terminated when shrinking an instance group.

        Parameters:
        instancesToTerminate - Specific list of instances to be terminated when shrinking an instance group.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • instancesToProtect

        InstanceResizePolicy.Builder instancesToProtect​(Collection<String> instancesToProtect)

        Specific list of instances to be protected when shrinking an instance group.

        Parameters:
        instancesToProtect - Specific list of instances to be protected when shrinking an instance group.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • instancesToProtect

        InstanceResizePolicy.Builder instancesToProtect​(String... instancesToProtect)

        Specific list of instances to be protected when shrinking an instance group.

        Parameters:
        instancesToProtect - Specific list of instances to be protected when shrinking an instance group.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • instanceTerminationTimeout

        InstanceResizePolicy.Builder instanceTerminationTimeout​(Integer instanceTerminationTimeout)

        Decommissioning timeout override for the specific list of instances to be terminated.

        Parameters:
        instanceTerminationTimeout - Decommissioning timeout override for the specific list of instances to be terminated.
        Returns:
        Returns a reference to this object so that method calls can be chained together.