Interface GetBlockRequest.Builder
-
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CopyableBuilder<GetBlockRequest.Builder,GetBlockRequest>
,QldbRequest.Builder
,SdkBuilder<GetBlockRequest.Builder,GetBlockRequest>
,SdkPojo
,SdkRequest.Builder
- Enclosing class:
- GetBlockRequest
public static interface GetBlockRequest.Builder extends QldbRequest.Builder, SdkPojo, CopyableBuilder<GetBlockRequest.Builder,GetBlockRequest>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default GetBlockRequest.Builder
blockAddress(Consumer<ValueHolder.Builder> blockAddress)
The location of the block that you want to request.GetBlockRequest.Builder
blockAddress(ValueHolder blockAddress)
The location of the block that you want to request.default GetBlockRequest.Builder
digestTipAddress(Consumer<ValueHolder.Builder> digestTipAddress)
The latest block location covered by the digest for which to request a proof.GetBlockRequest.Builder
digestTipAddress(ValueHolder digestTipAddress)
The latest block location covered by the digest for which to request a proof.GetBlockRequest.Builder
name(String name)
The name of the ledger.GetBlockRequest.Builder
overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
GetBlockRequest.Builder
overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
-
Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.services.qldb.model.QldbRequest.Builder
build
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
-
-
-
Method Detail
-
name
GetBlockRequest.Builder name(String name)
The name of the ledger.
- Parameters:
name
- The name of the ledger.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
blockAddress
GetBlockRequest.Builder blockAddress(ValueHolder blockAddress)
The location of the block that you want to request. An address is an Amazon Ion structure that has two fields:
strandId
andsequenceNo
.For example:
{strandId:"BlFTjlSXze9BIh1KOszcE3",sequenceNo:14}
.- Parameters:
blockAddress
- The location of the block that you want to request. An address is an Amazon Ion structure that has two fields:strandId
andsequenceNo
.For example:
{strandId:"BlFTjlSXze9BIh1KOszcE3",sequenceNo:14}
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
blockAddress
default GetBlockRequest.Builder blockAddress(Consumer<ValueHolder.Builder> blockAddress)
The location of the block that you want to request. An address is an Amazon Ion structure that has two fields:
strandId
andsequenceNo
.For example:
This is a convenience method that creates an instance of the{strandId:"BlFTjlSXze9BIh1KOszcE3",sequenceNo:14}
.ValueHolder.Builder
avoiding the need to create one manually viaValueHolder.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toblockAddress(ValueHolder)
.- Parameters:
blockAddress
- 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:
blockAddress(ValueHolder)
-
digestTipAddress
GetBlockRequest.Builder digestTipAddress(ValueHolder digestTipAddress)
The latest block location covered by the digest for which to request a proof. An address is an Amazon Ion structure that has two fields:
strandId
andsequenceNo
.For example:
{strandId:"BlFTjlSXze9BIh1KOszcE3",sequenceNo:49}
.- Parameters:
digestTipAddress
- The latest block location covered by the digest for which to request a proof. An address is an Amazon Ion structure that has two fields:strandId
andsequenceNo
.For example:
{strandId:"BlFTjlSXze9BIh1KOszcE3",sequenceNo:49}
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
digestTipAddress
default GetBlockRequest.Builder digestTipAddress(Consumer<ValueHolder.Builder> digestTipAddress)
The latest block location covered by the digest for which to request a proof. An address is an Amazon Ion structure that has two fields:
strandId
andsequenceNo
.For example:
This is a convenience method that creates an instance of the{strandId:"BlFTjlSXze9BIh1KOszcE3",sequenceNo:49}
.ValueHolder.Builder
avoiding the need to create one manually viaValueHolder.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed todigestTipAddress(ValueHolder)
.- Parameters:
digestTipAddress
- 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:
digestTipAddress(ValueHolder)
-
overrideConfiguration
GetBlockRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
-
overrideConfiguration
GetBlockRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
-
-