Interface BlockReference.Builder

  • Method Details

    • blockId

      BlockReference.Builder blockId(String blockId)

      Unique identifier for the block.

      Parameters:
      blockId - Unique identifier for the block.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • beginOffset

      BlockReference.Builder beginOffset(Integer beginOffset)

      Offset of the start of the block within its parent block.

      Parameters:
      beginOffset - Offset of the start of the block within its parent block.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • endOffset

      BlockReference.Builder endOffset(Integer endOffset)

      Offset of the end of the block within its parent block.

      Parameters:
      endOffset - Offset of the end of the block within its parent block.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • childBlocks

      BlockReference.Builder childBlocks(Collection<ChildBlock> childBlocks)

      List of child blocks within this block.

      Parameters:
      childBlocks - List of child blocks within this block.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • childBlocks

      BlockReference.Builder childBlocks(ChildBlock... childBlocks)

      List of child blocks within this block.

      Parameters:
      childBlocks - List of child blocks within this block.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • childBlocks

      BlockReference.Builder childBlocks(Consumer<ChildBlock.Builder>... childBlocks)

      List of child blocks within this block.

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

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

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