Interface InstanceGroupScalingMetadata.Builder

  • Method Details

    • instanceCount

      InstanceGroupScalingMetadata.Builder instanceCount(Integer instanceCount)

      The current number of instances in the group.

      Parameters:
      instanceCount - The current number of instances in the group.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • targetCount

      The desired number of instances for the group after scaling.

      Parameters:
      targetCount - The desired number of instances for the group after scaling.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • failureMessage

      InstanceGroupScalingMetadata.Builder failureMessage(String failureMessage)

      An error message describing why the scaling operation failed, if applicable.

      Parameters:
      failureMessage - An error message describing why the scaling operation failed, if applicable.
      Returns:
      Returns a reference to this object so that method calls can be chained together.