@Stability(value=Experimental) public static final class BackupSelectionProps.Builder extends Object implements software.amazon.jsii.Builder<BackupSelectionProps>
BackupSelectionProps| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
BackupSelectionProps.Builder |
allowRestores(Boolean allowRestores)
Sets the value of
BackupSelectionOptions.getAllowRestores() |
BackupSelectionProps.Builder |
backupPlan(IBackupPlan backupPlan)
Sets the value of
BackupSelectionProps.getBackupPlan() |
BackupSelectionProps.Builder |
backupSelectionName(String backupSelectionName)
Sets the value of
BackupSelectionOptions.getBackupSelectionName() |
BackupSelectionProps |
build()
Builds the configured instance.
|
BackupSelectionProps.Builder |
resources(List<? extends BackupResource> resources)
Sets the value of
BackupSelectionOptions.getResources() |
BackupSelectionProps.Builder |
role(IRole role)
Sets the value of
BackupSelectionOptions.getRole() |
@Stability(value=Experimental) public BackupSelectionProps.Builder backupPlan(IBackupPlan backupPlan)
BackupSelectionProps.getBackupPlan()backupPlan - The backup plan for this selection. This parameter is required.this@Stability(value=Experimental) public BackupSelectionProps.Builder resources(List<? extends BackupResource> resources)
BackupSelectionOptions.getResources()resources - The resources to backup. This parameter is required.
Use the helper static methods defined on BackupResource.this@Stability(value=Experimental) public BackupSelectionProps.Builder allowRestores(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@Stability(value=Experimental) public BackupSelectionProps.Builder backupSelectionName(String backupSelectionName)
BackupSelectionOptions.getBackupSelectionName()backupSelectionName - The name for this selection.this@Stability(value=Experimental) 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@Stability(value=Experimental) public BackupSelectionProps build()
build in interface software.amazon.jsii.Builder<BackupSelectionProps>BackupSelectionPropsNullPointerException - if any required attribute was not providedCopyright © 2021. All rights reserved.