Interface OutlierDetection.Builder

All Superinterfaces:
Buildable, CopyableBuilder<OutlierDetection.Builder,OutlierDetection>, SdkBuilder<OutlierDetection.Builder,OutlierDetection>, SdkPojo
Enclosing class:
OutlierDetection

public static interface OutlierDetection.Builder extends SdkPojo, CopyableBuilder<OutlierDetection.Builder,OutlierDetection>
  • Method Details

    • baseEjectionDuration

      OutlierDetection.Builder baseEjectionDuration(Duration baseEjectionDuration)

      The base amount of time for which a host is ejected.

      Parameters:
      baseEjectionDuration - The base amount of time for which a host is ejected.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • baseEjectionDuration

      default OutlierDetection.Builder baseEjectionDuration(Consumer<Duration.Builder> baseEjectionDuration)

      The base amount of time for which a host is ejected.

      This is a convenience method that creates an instance of the Duration.Builder avoiding the need to create one manually via Duration.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to baseEjectionDuration(Duration).

      Parameters:
      baseEjectionDuration - a consumer that will call methods on Duration.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • interval

      OutlierDetection.Builder interval(Duration interval)

      The time interval between ejection sweep analysis.

      Parameters:
      interval - The time interval between ejection sweep analysis.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • interval

      default OutlierDetection.Builder interval(Consumer<Duration.Builder> interval)

      The time interval between ejection sweep analysis.

      This is a convenience method that creates an instance of the Duration.Builder avoiding the need to create one manually via Duration.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to interval(Duration).

      Parameters:
      interval - a consumer that will call methods on Duration.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • maxEjectionPercent

      OutlierDetection.Builder maxEjectionPercent(Integer maxEjectionPercent)

      Maximum percentage of hosts in load balancing pool for upstream service that can be ejected. Will eject at least one host regardless of the value.

      Parameters:
      maxEjectionPercent - Maximum percentage of hosts in load balancing pool for upstream service that can be ejected. Will eject at least one host regardless of the value.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • maxServerErrors

      OutlierDetection.Builder maxServerErrors(Long maxServerErrors)

      Number of consecutive 5xx errors required for ejection.

      Parameters:
      maxServerErrors - Number of consecutive 5xx errors required for ejection.
      Returns:
      Returns a reference to this object so that method calls can be chained together.