Interface ListLegalHoldsResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,BackupResponse.Builder,Buildable,CopyableBuilder<ListLegalHoldsResponse.Builder,,ListLegalHoldsResponse> SdkBuilder<ListLegalHoldsResponse.Builder,,ListLegalHoldsResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
ListLegalHoldsResponse
@Mutable
@NotThreadSafe
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, responseMetadataMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFieldsMethods 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
MaxResultsnumber of resources,NextTokenallows 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 returnMaxResultsnumber of resources,NextTokenallows 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.Builderavoiding the need to create one manually viaLegalHold.builder().When the
Consumercompletes,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:
-