Class InstanceGroupModifyConfig

    • Constructor Detail

      • InstanceGroupModifyConfig

        public InstanceGroupModifyConfig()
        Default constructor for InstanceGroupModifyConfig object. Callers should use the setter or fluent setter (with...) methods to initialize the object after creating it.
      • InstanceGroupModifyConfig

        public InstanceGroupModifyConfig​(String instanceGroupId,
                                         Integer instanceCount)
        Constructs a new InstanceGroupModifyConfig object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.
        Parameters:
        instanceGroupId - Unique ID of the instance group to expand or shrink.
        instanceCount - Target size for the instance group.
    • Method Detail

      • setInstanceGroupId

        public void setInstanceGroupId​(String instanceGroupId)

        Unique ID of the instance group to expand or shrink.

        Parameters:
        instanceGroupId - Unique ID of the instance group to expand or shrink.
      • getInstanceGroupId

        public String getInstanceGroupId()

        Unique ID of the instance group to expand or shrink.

        Returns:
        Unique ID of the instance group to expand or shrink.
      • withInstanceGroupId

        public InstanceGroupModifyConfig withInstanceGroupId​(String instanceGroupId)

        Unique ID of the instance group to expand or shrink.

        Parameters:
        instanceGroupId - Unique ID of the instance group to expand or shrink.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setInstanceCount

        public void setInstanceCount​(Integer instanceCount)

        Target size for the instance group.

        Parameters:
        instanceCount - Target size for the instance group.
      • getInstanceCount

        public Integer getInstanceCount()

        Target size for the instance group.

        Returns:
        Target size for the instance group.
      • withInstanceCount

        public InstanceGroupModifyConfig withInstanceCount​(Integer instanceCount)

        Target size for the instance group.

        Parameters:
        instanceCount - Target size for the instance group.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • getEC2InstanceIdsToTerminate

        public List<String> getEC2InstanceIdsToTerminate()

        The EC2 InstanceIds to terminate. Once you terminate the instances, the instance group will not return to its original requested size.

        Returns:
        The EC2 InstanceIds to terminate. Once you terminate the instances, the instance group will not return to its original requested size.
      • setEC2InstanceIdsToTerminate

        public void setEC2InstanceIdsToTerminate​(Collection<String> eC2InstanceIdsToTerminate)

        The EC2 InstanceIds to terminate. Once you terminate the instances, the instance group will not return to its original requested size.

        Parameters:
        eC2InstanceIdsToTerminate - The EC2 InstanceIds to terminate. Once you terminate the instances, the instance group will not return to its original requested size.
      • withEC2InstanceIdsToTerminate

        public InstanceGroupModifyConfig withEC2InstanceIdsToTerminate​(String... eC2InstanceIdsToTerminate)

        The EC2 InstanceIds to terminate. Once you terminate the instances, the instance group will not return to its original requested size.

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

        Parameters:
        eC2InstanceIdsToTerminate - The EC2 InstanceIds to terminate. Once you terminate the instances, the instance group will not return to its original requested size.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • withEC2InstanceIdsToTerminate

        public InstanceGroupModifyConfig withEC2InstanceIdsToTerminate​(Collection<String> eC2InstanceIdsToTerminate)

        The EC2 InstanceIds to terminate. Once you terminate the instances, the instance group will not return to its original requested size.

        Parameters:
        eC2InstanceIdsToTerminate - The EC2 InstanceIds to terminate. Once you terminate the instances, the instance group will not return to its original requested size.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setShrinkPolicy

        public void setShrinkPolicy​(ShrinkPolicy shrinkPolicy)

        Policy for customizing shrink operations.

        Parameters:
        shrinkPolicy - Policy for customizing shrink operations.
      • getShrinkPolicy

        public ShrinkPolicy getShrinkPolicy()

        Policy for customizing shrink operations.

        Returns:
        Policy for customizing shrink operations.
      • withShrinkPolicy

        public InstanceGroupModifyConfig withShrinkPolicy​(ShrinkPolicy shrinkPolicy)

        Policy for customizing shrink operations.

        Parameters:
        shrinkPolicy - Policy for customizing shrink operations.
        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