Interface ClusterStatus.Builder

    • Method Detail

      • state

        ClusterStatus.Builder state​(String state)

        The current state of the cluster.

        Parameters:
        state - The current state of the cluster.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        ClusterState, ClusterState
      • stateChangeReason

        ClusterStatus.Builder stateChangeReason​(ClusterStateChangeReason stateChangeReason)

        The reason for the cluster status change.

        Parameters:
        stateChangeReason - The reason for the cluster status change.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • timeline

        ClusterStatus.Builder timeline​(ClusterTimeline timeline)

        A timeline that represents the status of a cluster over the lifetime of the cluster.

        Parameters:
        timeline - A timeline that represents the status of a cluster over the lifetime of the cluster.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • errorDetails

        ClusterStatus.Builder errorDetails​(Collection<ErrorDetail> errorDetails)

        A list of tuples that provides information about the errors that caused a cluster to terminate. This structure can contain up to 10 different ErrorDetail tuples.

        Parameters:
        errorDetails - A list of tuples that provides information about the errors that caused a cluster to terminate. This structure can contain up to 10 different ErrorDetail tuples.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • errorDetails

        ClusterStatus.Builder errorDetails​(ErrorDetail... errorDetails)

        A list of tuples that provides information about the errors that caused a cluster to terminate. This structure can contain up to 10 different ErrorDetail tuples.

        Parameters:
        errorDetails - A list of tuples that provides information about the errors that caused a cluster to terminate. This structure can contain up to 10 different ErrorDetail tuples.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • errorDetails

        ClusterStatus.Builder errorDetails​(Consumer<ErrorDetail.Builder>... errorDetails)

        A list of tuples that provides information about the errors that caused a cluster to terminate. This structure can contain up to 10 different ErrorDetail tuples.

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

        When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to #errorDetails(List).

        Parameters:
        errorDetails - a consumer that will call methods on ErrorDetail.Builder
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        #errorDetails(java.util.Collection)