Interface GenerationErrorDetail.Builder

  • Method Details

    • errorCode

      GenerationErrorDetail.Builder errorCode(String errorCode)

      The error code, for example ACCESS_DENIED or EXPIRED_CREDENTIALS. New codes can be added.

      Parameters:
      errorCode - The error code, for example ACCESS_DENIED or EXPIRED_CREDENTIALS. New codes can be added.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • errorMessage

      GenerationErrorDetail.Builder errorMessage(String errorMessage)

      A description of the error.

      Parameters:
      errorMessage - A description of the error.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • count

      The number of sessions and traces that failed with this error code. Absent for a generation that finished before failures were counted by code. In that case, sessionIds is a sample.

      Parameters:
      count - The number of sessions and traces that failed with this error code. Absent for a generation that finished before failures were counted by code. In that case, sessionIds is a sample.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • sessionIds

      Up to 10 of the sessions that failed with this error code. Each entry is a session ID, or the ID of a trace named in the request.

      Parameters:
      sessionIds - Up to 10 of the sessions that failed with this error code. Each entry is a session ID, or the ID of a trace named in the request.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • sessionIds

      GenerationErrorDetail.Builder sessionIds(String... sessionIds)

      Up to 10 of the sessions that failed with this error code. Each entry is a session ID, or the ID of a trace named in the request.

      Parameters:
      sessionIds - Up to 10 of the sessions that failed with this error code. Each entry is a session ID, or the ID of a trace named in the request.
      Returns:
      Returns a reference to this object so that method calls can be chained together.