Interface Backup.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<Backup.Builder,
,Backup> SdkBuilder<Backup.Builder,
,Backup> SdkPojo
- Enclosing class:
Backup
-
Method Summary
Modifier and TypeMethodDescriptionThe identifier (ID) of the backup.backupState
(String backupState) The state of the backup.backupState
(BackupState backupState) The state of the backup.The identifier (ID) of the cluster that was backed up.copyTimestamp
(Instant copyTimestamp) The date and time when the backup was copied from a source backup.createTimestamp
(Instant createTimestamp) The date and time when the backup was created.deleteTimestamp
(Instant deleteTimestamp) The date and time when the backup will be permanently deleted.neverExpires
(Boolean neverExpires) Specifies whether the service should exempt a backup from the retention policy for the cluster.sourceBackup
(String sourceBackup) The identifier (ID) of the source backup from which the new backup was copied.sourceCluster
(String sourceCluster) The identifier (ID) of the cluster containing the source backup from which the new backup was copied.sourceRegion
(String sourceRegion) The AWS Region that contains the source backup from which the new backup was copied.tagList
(Collection<Tag> tagList) The list of tags for the backup.tagList
(Consumer<Tag.Builder>... tagList) The list of tags for the backup.The list of tags for the backup.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
-
Method Details
-
backupId
The identifier (ID) of the backup.
- Parameters:
backupId
- The identifier (ID) of the backup.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
backupState
The state of the backup.
- Parameters:
backupState
- The state of the backup.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
backupState
The state of the backup.
- Parameters:
backupState
- The state of the backup.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
clusterId
The identifier (ID) of the cluster that was backed up.
- Parameters:
clusterId
- The identifier (ID) of the cluster that was backed up.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
createTimestamp
The date and time when the backup was created.
- Parameters:
createTimestamp
- The date and time when the backup was created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
copyTimestamp
The date and time when the backup was copied from a source backup.
- Parameters:
copyTimestamp
- The date and time when the backup was copied from a source backup.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
neverExpires
Specifies whether the service should exempt a backup from the retention policy for the cluster.
True
exempts a backup from the retention policy.False
means the service applies the backup retention policy defined at the cluster.- Parameters:
neverExpires
- Specifies whether the service should exempt a backup from the retention policy for the cluster.True
exempts a backup from the retention policy.False
means the service applies the backup retention policy defined at the cluster.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sourceRegion
The AWS Region that contains the source backup from which the new backup was copied.
- Parameters:
sourceRegion
- The AWS Region that contains the source backup from which the new backup was copied.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sourceBackup
The identifier (ID) of the source backup from which the new backup was copied.
- Parameters:
sourceBackup
- The identifier (ID) of the source backup from which the new backup was copied.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sourceCluster
The identifier (ID) of the cluster containing the source backup from which the new backup was copied.
- Parameters:
sourceCluster
- The identifier (ID) of the cluster containing the source backup from which the new backup was copied.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
deleteTimestamp
The date and time when the backup will be permanently deleted.
- Parameters:
deleteTimestamp
- The date and time when the backup will be permanently deleted.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tagList
The list of tags for the backup.
- Parameters:
tagList
- The list of tags for the backup.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tagList
The list of tags for the backup.
- Parameters:
tagList
- The list of tags for the backup.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tagList
The list of tags for the backup.
This is a convenience method that creates an instance of theTag.Builder
avoiding the need to create one manually viaTag.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed totagList(List<Tag>)
.- Parameters:
tagList
- a consumer that will call methods onTag.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-