Interface DescribeSnapshotsResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<DescribeSnapshotsResponse.Builder,,DescribeSnapshotsResponse> DirectoryResponse.Builder,SdkBuilder<DescribeSnapshotsResponse.Builder,,DescribeSnapshotsResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
DescribeSnapshotsResponse
-
Method Summary
Modifier and TypeMethodDescriptionIf not null, more results are available.snapshots(Collection<Snapshot> snapshots) The list of Snapshot objects that were retrieved.snapshots(Consumer<Snapshot.Builder>... snapshots) The list of Snapshot objects that were retrieved.The list of Snapshot objects that were retrieved.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.directory.model.DirectoryResponse.Builder
build, responseMetadata, responseMetadataMethods 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
-
snapshots
The list of Snapshot objects that were retrieved.
It is possible that this list contains less than the number of items specified in the Limit member of the request. This occurs if there are less than the requested number of items left to retrieve, or if the limitations of the operation have been exceeded.
- Parameters:
snapshots- The list of Snapshot objects that were retrieved.It is possible that this list contains less than the number of items specified in the Limit member of the request. This occurs if there are less than the requested number of items left to retrieve, or if the limitations of the operation have been exceeded.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
snapshots
The list of Snapshot objects that were retrieved.
It is possible that this list contains less than the number of items specified in the Limit member of the request. This occurs if there are less than the requested number of items left to retrieve, or if the limitations of the operation have been exceeded.
- Parameters:
snapshots- The list of Snapshot objects that were retrieved.It is possible that this list contains less than the number of items specified in the Limit member of the request. This occurs if there are less than the requested number of items left to retrieve, or if the limitations of the operation have been exceeded.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
snapshots
The list of Snapshot objects that were retrieved.
It is possible that this list contains less than the number of items specified in the Limit member of the request. This occurs if there are less than the requested number of items left to retrieve, or if the limitations of the operation have been exceeded.
This is a convenience method that creates an instance of theSnapshot.Builderavoiding the need to create one manually viaSnapshot.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tosnapshots(List<Snapshot>).- Parameters:
snapshots- a consumer that will call methods onSnapshot.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
nextToken
If not null, more results are available. Pass this value in the NextToken member of a subsequent call to DescribeSnapshots.
- Parameters:
nextToken- If not null, more results are available. Pass this value in the NextToken member of a subsequent call to DescribeSnapshots.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-