Interface InputDocument.Builder

  • Method Details

    • name

      The name of the document. The name must be unique within the request.

      Parameters:
      name - The name of the document. The name must be unique within the request.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • contentType

      InputDocument.Builder contentType(String contentType)

      You must specify a content type that the task configuration accepts. Otherwise, the request fails with ValidationException.

      Parameters:
      contentType - You must specify a content type that the task configuration accepts. Otherwise, the request fails with ValidationException.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • contentType

      InputDocument.Builder contentType(DocumentContentType contentType)

      You must specify a content type that the task configuration accepts. Otherwise, the request fails with ValidationException.

      Parameters:
      contentType - You must specify a content type that the task configuration accepts. Otherwise, the request fails with ValidationException.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • content

      InputDocument.Builder content(SdkBytes content)

      The content of the document. All the documents in one request can total at most 10,485,760 bytes (10 MiB).

      Parameters:
      content - The content of the document. All the documents in one request can total at most 10,485,760 bytes (10 MiB).
      Returns:
      Returns a reference to this object so that method calls can be chained together.