Interface ListLegalHoldsResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,BackupResponse.Builder
,Buildable
,CopyableBuilder<ListLegalHoldsResponse.Builder,
,ListLegalHoldsResponse> SdkBuilder<ListLegalHoldsResponse.Builder,
,ListLegalHoldsResponse> SdkPojo
,SdkResponse.Builder
- Enclosing class:
ListLegalHoldsResponse
public static interface ListLegalHoldsResponse.Builder
extends BackupResponse.Builder, SdkPojo, CopyableBuilder<ListLegalHoldsResponse.Builder,ListLegalHoldsResponse>
-
Method Summary
Modifier and TypeMethodDescriptionlegalHolds
(Collection<LegalHold> legalHolds) This is an array of returned legal holds, both active and previous.legalHolds
(Consumer<LegalHold.Builder>... legalHolds) This is an array of returned legal holds, both active and previous.legalHolds
(LegalHold... legalHolds) This is an array of returned legal holds, both active and previous.The next item following a partial list of returned resources.Methods inherited from interface software.amazon.awssdk.services.backup.model.BackupResponse.Builder
build, responseMetadata, responseMetadata
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, sdkFields
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
nextToken
The next item following a partial list of returned resources. For example, if a request is made to return
MaxResults
number of resources,NextToken
allows you to return more items in your list starting at the location pointed to by the next token.- Parameters:
nextToken
- The next item following a partial list of returned resources. For example, if a request is made to returnMaxResults
number of resources,NextToken
allows you to return more items in your list starting at the location pointed to by the next token.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
legalHolds
This is an array of returned legal holds, both active and previous.
- Parameters:
legalHolds
- This is an array of returned legal holds, both active and previous.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
legalHolds
This is an array of returned legal holds, both active and previous.
- Parameters:
legalHolds
- This is an array of returned legal holds, both active and previous.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
legalHolds
This is an array of returned legal holds, both active and previous.
This is a convenience method that creates an instance of theLegalHold.Builder
avoiding the need to create one manually viaLegalHold.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tolegalHolds(List<LegalHold>)
.- Parameters:
legalHolds
- a consumer that will call methods onLegalHold.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-