public static final class BackupSelectionProps.Builder
extends java.lang.Object
BackupSelectionProps
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
BackupSelectionProps.Builder |
allowRestores(java.lang.Boolean allowRestores)
Sets the value of
BackupSelectionOptions.getAllowRestores() |
BackupSelectionProps.Builder |
backupPlan(IBackupPlan backupPlan)
Sets the value of
BackupSelectionProps.getBackupPlan() |
BackupSelectionProps.Builder |
backupSelectionName(java.lang.String backupSelectionName)
Sets the value of
BackupSelectionOptions.getBackupSelectionName() |
BackupSelectionProps |
build()
Builds the configured instance.
|
BackupSelectionProps.Builder |
resources(java.util.List<? extends BackupResource> resources)
Sets the value of
BackupSelectionOptions.getResources() |
BackupSelectionProps.Builder |
role(IRole role)
Sets the value of
BackupSelectionOptions.getRole() |
public BackupSelectionProps.Builder backupPlan(IBackupPlan backupPlan)
BackupSelectionProps.getBackupPlan()
backupPlan
- The backup plan for this selection. This parameter is required.this
public BackupSelectionProps.Builder resources(java.util.List<? extends BackupResource> resources)
BackupSelectionOptions.getResources()
resources
- The resources to backup. This parameter is required.
Use the helper static methods defined on BackupResource
.this
public BackupSelectionProps.Builder allowRestores(java.lang.Boolean allowRestores)
BackupSelectionOptions.getAllowRestores()
allowRestores
- Whether to automatically give restores permissions to the role that AWS Backup uses.
If true
, the AWSBackupServiceRolePolicyForRestores
managed
policy will be attached to the role.this
public BackupSelectionProps.Builder backupSelectionName(java.lang.String backupSelectionName)
BackupSelectionOptions.getBackupSelectionName()
backupSelectionName
- The name for this selection.this
public BackupSelectionProps.Builder role(IRole role)
BackupSelectionOptions.getRole()
role
- The role that AWS Backup uses to authenticate when backuping or restoring the resources.
The AWSBackupServiceRolePolicyForBackup
managed policy
will be attached to this role.this
public BackupSelectionProps build()
BackupSelectionProps
java.lang.NullPointerException
- if any required attribute was not provided