Interface RootCauseCluster.Builder

  • Method Details

    • clusterId

      RootCauseCluster.Builder clusterId(Integer clusterId)

      The unique identifier of the root cause cluster.

      Parameters:
      clusterId - The unique identifier of the root cause cluster.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • name

      The name of the root cause cluster.

      Parameters:
      name - The name of the root cause cluster.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • rootCause

      RootCauseCluster.Builder rootCause(String rootCause)

      The root cause explanation for this cluster of failures.

      Parameters:
      rootCause - The root cause explanation for this cluster of failures.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • recommendation

      RootCauseCluster.Builder recommendation(String recommendation)

      The recommended fix for this root cause.

      Parameters:
      recommendation - The recommended fix for this root cause.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • affectedSessionCount

      RootCauseCluster.Builder affectedSessionCount(Integer affectedSessionCount)

      The number of sessions affected by this root cause.

      Parameters:
      affectedSessionCount - The number of sessions affected by this root cause.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • affectedSessions

      RootCauseCluster.Builder affectedSessions(Collection<AffectedSession> affectedSessions)

      The list of sessions affected by this root cause.

      Parameters:
      affectedSessions - The list of sessions affected by this root cause.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • affectedSessions

      RootCauseCluster.Builder affectedSessions(AffectedSession... affectedSessions)

      The list of sessions affected by this root cause.

      Parameters:
      affectedSessions - The list of sessions affected by this root cause.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • affectedSessions

      RootCauseCluster.Builder affectedSessions(Consumer<AffectedSession.Builder>... affectedSessions)

      The list of sessions affected by this root cause.

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

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to affectedSessions(List<AffectedSession>).

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