Class CfnBackupSelectionProps.Builder
java.lang.Object
software.amazon.awscdk.services.backup.CfnBackupSelectionProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnBackupSelectionProps>
- Enclosing interface:
- CfnBackupSelectionProps
@Stability(Stable)
public static final class CfnBackupSelectionProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnBackupSelectionProps>
A builder for
CfnBackupSelectionProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbackupPlanId
(String backupPlanId) Sets the value ofCfnBackupSelectionProps.getBackupPlanId()
backupSelection
(IResolvable backupSelection) Sets the value ofCfnBackupSelectionProps.getBackupSelection()
backupSelection
(CfnBackupSelection.BackupSelectionResourceTypeProperty backupSelection) Sets the value ofCfnBackupSelectionProps.getBackupSelection()
build()
Builds the configured instance.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
backupPlanId
Sets the value ofCfnBackupSelectionProps.getBackupPlanId()
- Parameters:
backupPlanId
- Uniquely identifies a backup plan. This parameter is required.- Returns:
this
-
backupSelection
@Stability(Stable) public CfnBackupSelectionProps.Builder backupSelection(IResolvable backupSelection) Sets the value ofCfnBackupSelectionProps.getBackupSelection()
- Parameters:
backupSelection
- Specifies the body of a request to assign a set of resources to a backup plan. This parameter is required. It includes an array of resources, an optional array of patterns to exclude resources, an optional role to provide access to the AWS service the resource belongs to, and an optional array of tags used to identify a set of resources.- Returns:
this
-
backupSelection
@Stability(Stable) public CfnBackupSelectionProps.Builder backupSelection(CfnBackupSelection.BackupSelectionResourceTypeProperty backupSelection) Sets the value ofCfnBackupSelectionProps.getBackupSelection()
- Parameters:
backupSelection
- Specifies the body of a request to assign a set of resources to a backup plan. This parameter is required. It includes an array of resources, an optional array of patterns to exclude resources, an optional role to provide access to the AWS service the resource belongs to, and an optional array of tags used to identify a set of resources.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnBackupSelectionProps>
- Returns:
- a new instance of
CfnBackupSelectionProps
- Throws:
NullPointerException
- if any required attribute was not provided
-