Interface AssetFile.Builder

  • Method Details

    • path

      The path of this file within the asset

      Parameters:
      path - The path of this file within the asset
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • content

      AssetFile.Builder content(AssetFileBody content)

      The content of this file

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

      default AssetFile.Builder content(Consumer<AssetFileBody.Builder> content)

      The content of this file

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

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

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

      AssetFile.Builder metadata(Document metadata)

      The metadata for this file

      Parameters:
      metadata - The metadata for this file
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • version

      AssetFile.Builder version(Integer version)

      The asset version this file belongs to

      Parameters:
      version - The asset version this file belongs to
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • createdAt

      AssetFile.Builder createdAt(Instant createdAt)

      Timestamp when this file was created

      Parameters:
      createdAt - Timestamp when this file was created
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • updatedAt

      AssetFile.Builder updatedAt(Instant updatedAt)

      Timestamp when this file was last updated

      Parameters:
      updatedAt - Timestamp when this file was last updated
      Returns:
      Returns a reference to this object so that method calls can be chained together.