Interface GetTextDetectionResponse.Builder

  • Method Details

    • jobStatus

      Current status of the text detection job.

      Parameters:
      jobStatus - Current status of the text detection job.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • jobStatus

      Current status of the text detection job.

      Parameters:
      jobStatus - Current status of the text detection job.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • statusMessage

      GetTextDetectionResponse.Builder statusMessage(String statusMessage)

      If the job fails, StatusMessage provides a descriptive error message.

      Parameters:
      statusMessage - If the job fails, StatusMessage provides a descriptive error message.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • videoMetadata

      GetTextDetectionResponse.Builder videoMetadata(VideoMetadata videoMetadata)
      Sets the value of the VideoMetadata property for this object.
      Parameters:
      videoMetadata - The new value for the VideoMetadata property for this object.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • videoMetadata

      default GetTextDetectionResponse.Builder videoMetadata(Consumer<VideoMetadata.Builder> videoMetadata)
      Sets the value of the VideoMetadata property for this object. This is a convenience method that creates an instance of the VideoMetadata.Builder avoiding the need to create one manually via VideoMetadata.builder().

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

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

      An array of text detected in the video. Each element contains the detected text, the time in milliseconds from the start of the video that the text was detected, and where it was detected on the screen.

      Parameters:
      textDetections - An array of text detected in the video. Each element contains the detected text, the time in milliseconds from the start of the video that the text was detected, and where it was detected on the screen.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • textDetections

      GetTextDetectionResponse.Builder textDetections(TextDetectionResult... textDetections)

      An array of text detected in the video. Each element contains the detected text, the time in milliseconds from the start of the video that the text was detected, and where it was detected on the screen.

      Parameters:
      textDetections - An array of text detected in the video. Each element contains the detected text, the time in milliseconds from the start of the video that the text was detected, and where it was detected on the screen.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • textDetections

      An array of text detected in the video. Each element contains the detected text, the time in milliseconds from the start of the video that the text was detected, and where it was detected on the screen.

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

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

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

      If the response is truncated, Amazon Rekognition Video returns this token that you can use in the subsequent request to retrieve the next set of text.

      Parameters:
      nextToken - If the response is truncated, Amazon Rekognition Video returns this token that you can use in the subsequent request to retrieve the next set of text.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • textModelVersion

      GetTextDetectionResponse.Builder textModelVersion(String textModelVersion)

      Version number of the text detection model that was used to detect text.

      Parameters:
      textModelVersion - Version number of the text detection model that was used to detect text.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • jobId

      Job identifier for the text detection operation for which you want to obtain results. The job identifer is returned by an initial call to StartTextDetection.

      Parameters:
      jobId - Job identifier for the text detection operation for which you want to obtain results. The job identifer is returned by an initial call to StartTextDetection.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • video

      Sets the value of the Video property for this object.
      Parameters:
      video - The new value for the Video property for this object.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • video

      Sets the value of the Video property for this object. This is a convenience method that creates an instance of the Video.Builder avoiding the need to create one manually via Video.builder().

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

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

      A job identifier specified in the call to StartTextDetection and returned in the job completion notification sent to your Amazon Simple Notification Service topic.

      Parameters:
      jobTag - A job identifier specified in the call to StartTextDetection and returned in the job completion notification sent to your Amazon Simple Notification Service topic.
      Returns:
      Returns a reference to this object so that method calls can be chained together.