Class InstanceResizePolicy

    • Constructor Detail

      • InstanceResizePolicy

        public InstanceResizePolicy()
    • Method Detail

      • getInstancesToTerminate

        public List<String> getInstancesToTerminate()

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

        Returns:
        Specific list of instances to be terminated when shrinking an instance group.
      • setInstancesToTerminate

        public void setInstancesToTerminate​(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.
      • withInstancesToTerminate

        public InstanceResizePolicy withInstancesToTerminate​(String... instancesToTerminate)

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

        NOTE: This method appends the values to the existing list (if any). Use setInstancesToTerminate(java.util.Collection) or withInstancesToTerminate(java.util.Collection) if you want to override the existing values.

        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.
      • withInstancesToTerminate

        public InstanceResizePolicy withInstancesToTerminate​(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.
      • getInstancesToProtect

        public List<String> getInstancesToProtect()

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

        Returns:
        Specific list of instances to be protected when shrinking an instance group.
      • setInstancesToProtect

        public void setInstancesToProtect​(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.
      • withInstancesToProtect

        public InstanceResizePolicy withInstancesToProtect​(String... instancesToProtect)

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

        NOTE: This method appends the values to the existing list (if any). Use setInstancesToProtect(java.util.Collection) or withInstancesToProtect(java.util.Collection) if you want to override the existing values.

        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.
      • withInstancesToProtect

        public InstanceResizePolicy withInstancesToProtect​(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.
      • setInstanceTerminationTimeout

        public void setInstanceTerminationTimeout​(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.
      • getInstanceTerminationTimeout

        public Integer getInstanceTerminationTimeout()

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

        Returns:
        Decommissioning timeout override for the specific list of instances to be terminated.
      • withInstanceTerminationTimeout

        public InstanceResizePolicy withInstanceTerminationTimeout​(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.
      • toString

        public String toString()
        Returns a string representation of this object; useful for testing and debugging.
        Overrides:
        toString in class Object
        Returns:
        A string representation of this object.
        See Also:
        Object.toString()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object