Interface GetBlockResponse.Builder
-
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<GetBlockResponse.Builder,GetBlockResponse>,QldbResponse.Builder,SdkBuilder<GetBlockResponse.Builder,GetBlockResponse>,SdkPojo,SdkResponse.Builder
- Enclosing class:
- GetBlockResponse
public static interface GetBlockResponse.Builder extends QldbResponse.Builder, SdkPojo, CopyableBuilder<GetBlockResponse.Builder,GetBlockResponse>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default GetBlockResponse.Builderblock(Consumer<ValueHolder.Builder> block)The block data object in Amazon Ion format.GetBlockResponse.Builderblock(ValueHolder block)The block data object in Amazon Ion format.default GetBlockResponse.Builderproof(Consumer<ValueHolder.Builder> proof)The proof object in Amazon Ion format returned by aGetBlockrequest.GetBlockResponse.Builderproof(ValueHolder proof)The proof object in Amazon Ion format returned by aGetBlockrequest.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.services.qldb.model.QldbResponse.Builder
build, responseMetadata, responseMetadata
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
-
-
-
Method Detail
-
block
GetBlockResponse.Builder block(ValueHolder block)
The block data object in Amazon Ion format.
- Parameters:
block- The block data object in Amazon Ion format.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
block
default GetBlockResponse.Builder block(Consumer<ValueHolder.Builder> block)
The block data object in Amazon Ion format.
This is a convenience method that creates an instance of theValueHolder.Builderavoiding the need to create one manually viaValueHolder.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toblock(ValueHolder).- Parameters:
block- a consumer that will call methods onValueHolder.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
block(ValueHolder)
-
proof
GetBlockResponse.Builder proof(ValueHolder proof)
The proof object in Amazon Ion format returned by a
GetBlockrequest. A proof contains the list of hash values required to recalculate the specified digest using a Merkle tree, starting with the specified block.- Parameters:
proof- The proof object in Amazon Ion format returned by aGetBlockrequest. A proof contains the list of hash values required to recalculate the specified digest using a Merkle tree, starting with the specified block.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
proof
default GetBlockResponse.Builder proof(Consumer<ValueHolder.Builder> proof)
The proof object in Amazon Ion format returned by a
This is a convenience method that creates an instance of theGetBlockrequest. A proof contains the list of hash values required to recalculate the specified digest using a Merkle tree, starting with the specified block.ValueHolder.Builderavoiding the need to create one manually viaValueHolder.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toproof(ValueHolder).- Parameters:
proof- a consumer that will call methods onValueHolder.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
proof(ValueHolder)
-
-