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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ListLegalHoldsResponse.BuilderlegalHolds(Collection<LegalHold> legalHolds)This is an array of returned legal holds, both active and previous.ListLegalHoldsResponse.BuilderlegalHolds(Consumer<LegalHold.Builder>... legalHolds)This is an array of returned legal holds, both active and previous.ListLegalHoldsResponse.BuilderlegalHolds(LegalHold... legalHolds)This is an array of returned legal holds, both active and previous.ListLegalHoldsResponse.BuildernextToken(String nextToken)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 Detail
-
nextToken
ListLegalHoldsResponse.Builder nextToken(String 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
ListLegalHoldsResponse.Builder legalHolds(Collection<LegalHold> 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
ListLegalHoldsResponse.Builder legalHolds(LegalHold... 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
ListLegalHoldsResponse.Builder legalHolds(Consumer<LegalHold.Builder>... 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 to#legalHolds(List.) - 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:
#legalHolds(java.util.Collection)
-
-