Interface ListLedgersResponse.Builder
-
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<ListLedgersResponse.Builder,ListLedgersResponse>,QldbResponse.Builder,SdkBuilder<ListLedgersResponse.Builder,ListLedgersResponse>,SdkPojo,SdkResponse.Builder
- Enclosing class:
- ListLedgersResponse
public static interface ListLedgersResponse.Builder extends QldbResponse.Builder, SdkPojo, CopyableBuilder<ListLedgersResponse.Builder,ListLedgersResponse>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ListLedgersResponse.Builderledgers(Collection<LedgerSummary> ledgers)The ledgers that are associated with the current Amazon Web Services account and Region.ListLedgersResponse.Builderledgers(Consumer<LedgerSummary.Builder>... ledgers)The ledgers that are associated with the current Amazon Web Services account and Region.ListLedgersResponse.Builderledgers(LedgerSummary... ledgers)The ledgers that are associated with the current Amazon Web Services account and Region.ListLedgersResponse.BuildernextToken(String nextToken)A pagination token, indicating whether there are more results available:-
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
-
ledgers
ListLedgersResponse.Builder ledgers(Collection<LedgerSummary> ledgers)
The ledgers that are associated with the current Amazon Web Services account and Region.
- Parameters:
ledgers- The ledgers that are associated with the current Amazon Web Services account and Region.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ledgers
ListLedgersResponse.Builder ledgers(LedgerSummary... ledgers)
The ledgers that are associated with the current Amazon Web Services account and Region.
- Parameters:
ledgers- The ledgers that are associated with the current Amazon Web Services account and Region.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ledgers
ListLedgersResponse.Builder ledgers(Consumer<LedgerSummary.Builder>... ledgers)
The ledgers that are associated with the current Amazon Web Services account and Region.
This is a convenience method that creates an instance of theLedgerSummary.Builderavoiding the need to create one manually viaLedgerSummary.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#ledgers(List.) - Parameters:
ledgers- a consumer that will call methods onLedgerSummary.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#ledgers(java.util.Collection)
-
nextToken
ListLedgersResponse.Builder nextToken(String nextToken)
A pagination token, indicating whether there are more results available:
-
If
NextTokenis empty, then the last page of results has been processed and there are no more results to be retrieved. -
If
NextTokenis not empty, then there are more results available. To retrieve the next page of results, use the value ofNextTokenin a subsequentListLedgerscall.
- Parameters:
nextToken- A pagination token, indicating whether there are more results available:-
If
NextTokenis empty, then the last page of results has been processed and there are no more results to be retrieved. -
If
NextTokenis not empty, then there are more results available. To retrieve the next page of results, use the value ofNextTokenin a subsequentListLedgerscall.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
-