Interface BlobPayload.Builder

  • Method Details

    • contentType

      BlobPayload.Builder contentType(String contentType)

      The document's media type. Only application/pdf is supported. Any other value fails with ValidationException.

      Parameters:
      contentType - The document's media type. Only application/pdf is supported. Any other value fails with ValidationException.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • contentType

      BlobPayload.Builder contentType(BlobContentType contentType)

      The document's media type. Only application/pdf is supported. Any other value fails with ValidationException.

      Parameters:
      contentType - The document's media type. Only application/pdf is supported. Any other value fails with ValidationException.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • source

      The location of the document.

      Parameters:
      source - The location of the document.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • source

      The location of the document.

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

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

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