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