Interface DescribeBackupsResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CloudHsmV2Response.Builder,CopyableBuilder<DescribeBackupsResponse.Builder,,DescribeBackupsResponse> SdkBuilder<DescribeBackupsResponse.Builder,,DescribeBackupsResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
DescribeBackupsResponse
public static interface DescribeBackupsResponse.Builder
extends CloudHsmV2Response.Builder, SdkPojo, CopyableBuilder<DescribeBackupsResponse.Builder,DescribeBackupsResponse>
-
Method Summary
Modifier and TypeMethodDescriptionbackups(Collection<Backup> backups) A list of backups.backups(Consumer<Backup.Builder>... backups) A list of backups.A list of backups.An opaque string that indicates that the response contains only a subset of backups.Methods inherited from interface software.amazon.awssdk.services.cloudhsmv2.model.CloudHsmV2Response.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, sdkFieldsMethods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
backups
A list of backups.
- Parameters:
backups- A list of backups.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
backups
A list of backups.
- Parameters:
backups- A list of backups.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
backups
A list of backups.
This is a convenience method that creates an instance of theBackup.Builderavoiding the need to create one manually viaBackup.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tobackups(List<Backup>).- Parameters:
backups- a consumer that will call methods onBackup.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
nextToken
An opaque string that indicates that the response contains only a subset of backups. Use this value in a subsequent
DescribeBackupsrequest to get more backups.- Parameters:
nextToken- An opaque string that indicates that the response contains only a subset of backups. Use this value in a subsequentDescribeBackupsrequest to get more backups.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-