Interface ContentBlock.Builder

  • Method Details

    • type

      The type of content in the block.

      Parameters:
      type - The type of content in the block.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • type

      The type of content in the block.

      Parameters:
      type - The type of content in the block.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • text

      The text content of the block.

      Parameters:
      text - The text content of the block.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • data

      The binary data content of the block.

      Parameters:
      data - The binary data content of the block.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • mimeType

      ContentBlock.Builder mimeType(String mimeType)

      The MIME type of the content.

      Parameters:
      mimeType - The MIME type of the content.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • uri

      The URI of the content.

      Parameters:
      uri - The URI of the content.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • name

      The name of the content block.

      Parameters:
      name - The name of the content block.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • description

      ContentBlock.Builder description(String description)

      The description of the content block.

      Parameters:
      description - The description of the content block.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • size

      The size of the content in bytes.

      Parameters:
      size - The size of the content in bytes.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • resource

      The resource associated with the content block.

      Parameters:
      resource - The resource associated with the content block.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • resource

      The resource associated with the content block.

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

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

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