Interface BlockReference.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<BlockReference.Builder,
,BlockReference> SdkBuilder<BlockReference.Builder,
,BlockReference> SdkPojo
- Enclosing class:
BlockReference
@Mutable
@NotThreadSafe
public static interface BlockReference.Builder
extends SdkPojo, CopyableBuilder<BlockReference.Builder,BlockReference>
-
Method Summary
Modifier and TypeMethodDescriptionbeginOffset
(Integer beginOffset) Offset of the start of the block within its parent block.Unique identifier for the block.childBlocks
(Collection<ChildBlock> childBlocks) List of child blocks within this block.childBlocks
(Consumer<ChildBlock.Builder>... childBlocks) List of child blocks within this block.childBlocks
(ChildBlock... childBlocks) List of child blocks within this block.Offset of the end of the block within its parent block.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
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
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
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
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
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
List of child blocks within this block.
This is a convenience method that creates an instance of theChildBlock.Builder
avoiding the need to create one manually viaChildBlock.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tochildBlocks(List<ChildBlock>)
.- Parameters:
childBlocks
- a consumer that will call methods onChildBlock.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-