Class CfnBackupPlanProps.Builder
java.lang.Object
software.amazon.awscdk.services.backup.CfnBackupPlanProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnBackupPlanProps>
- Enclosing interface:
- CfnBackupPlanProps
@Stability(Stable)
public static final class CfnBackupPlanProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnBackupPlanProps>
A builder for
CfnBackupPlanProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbackupPlan
(IResolvable backupPlan) Sets the value ofCfnBackupPlanProps.getBackupPlan()
Sets the value ofCfnBackupPlanProps.getBackupPlan()
backupPlanTags
(Map<String, String> backupPlanTags) Sets the value ofCfnBackupPlanProps.getBackupPlanTags()
backupPlanTags
(IResolvable backupPlanTags) Sets the value ofCfnBackupPlanProps.getBackupPlanTags()
build()
Builds the configured instance.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
backupPlan
@Stability(Stable) public CfnBackupPlanProps.Builder backupPlan(CfnBackupPlan.BackupPlanResourceTypeProperty backupPlan) Sets the value ofCfnBackupPlanProps.getBackupPlan()
- Parameters:
backupPlan
- Uniquely identifies the backup plan to be associated with the selection of resources. This parameter is required.- Returns:
this
-
backupPlan
Sets the value ofCfnBackupPlanProps.getBackupPlan()
- Parameters:
backupPlan
- Uniquely identifies the backup plan to be associated with the selection of resources. This parameter is required.- Returns:
this
-
backupPlanTags
Sets the value ofCfnBackupPlanProps.getBackupPlanTags()
- Parameters:
backupPlanTags
- To help organize your resources, you can assign your own metadata to the resources that you create. Each tag is a key-value pair. The specified tags are assigned to all backups created with this plan.- Returns:
this
-
backupPlanTags
@Stability(Stable) public CfnBackupPlanProps.Builder backupPlanTags(Map<String, String> backupPlanTags) Sets the value ofCfnBackupPlanProps.getBackupPlanTags()
- Parameters:
backupPlanTags
- To help organize your resources, you can assign your own metadata to the resources that you create. Each tag is a key-value pair. The specified tags are assigned to all backups created with this plan.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnBackupPlanProps>
- Returns:
- a new instance of
CfnBackupPlanProps
- Throws:
NullPointerException
- if any required attribute was not provided
-