Class CfnBackupPlan.BackupPlanResourceTypeProperty.Builder
java.lang.Object
software.amazon.awscdk.services.backup.CfnBackupPlan.BackupPlanResourceTypeProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnBackupPlan.BackupPlanResourceTypeProperty>
- Enclosing interface:
CfnBackupPlan.BackupPlanResourceTypeProperty
@Stability(Stable)
public static final class CfnBackupPlan.BackupPlanResourceTypeProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnBackupPlan.BackupPlanResourceTypeProperty>
A builder for
CfnBackupPlan.BackupPlanResourceTypeProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionadvancedBackupSettings(List<? extends Object> advancedBackupSettings) Sets the value ofCfnBackupPlan.BackupPlanResourceTypeProperty.getAdvancedBackupSettings()advancedBackupSettings(IResolvable advancedBackupSettings) Sets the value ofCfnBackupPlan.BackupPlanResourceTypeProperty.getAdvancedBackupSettings()backupPlanName(String backupPlanName) Sets the value ofCfnBackupPlan.BackupPlanResourceTypeProperty.getBackupPlanName()backupPlanRule(List<? extends Object> backupPlanRule) Sets the value ofCfnBackupPlan.BackupPlanResourceTypeProperty.getBackupPlanRule()backupPlanRule(IResolvable backupPlanRule) Sets the value ofCfnBackupPlan.BackupPlanResourceTypeProperty.getBackupPlanRule()build()Builds the configured instance.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
backupPlanName
@Stability(Stable) public CfnBackupPlan.BackupPlanResourceTypeProperty.Builder backupPlanName(String backupPlanName) Sets the value ofCfnBackupPlan.BackupPlanResourceTypeProperty.getBackupPlanName()- Parameters:
backupPlanName- The display name of a backup plan. This parameter is required.- Returns:
this
-
backupPlanRule
@Stability(Stable) public CfnBackupPlan.BackupPlanResourceTypeProperty.Builder backupPlanRule(IResolvable backupPlanRule) Sets the value ofCfnBackupPlan.BackupPlanResourceTypeProperty.getBackupPlanRule()- Parameters:
backupPlanRule- An array ofBackupRuleobjects, each of which specifies a scheduled task that is used to back up a selection of resources. This parameter is required.- Returns:
this
-
backupPlanRule
@Stability(Stable) public CfnBackupPlan.BackupPlanResourceTypeProperty.Builder backupPlanRule(List<? extends Object> backupPlanRule) Sets the value ofCfnBackupPlan.BackupPlanResourceTypeProperty.getBackupPlanRule()- Parameters:
backupPlanRule- An array ofBackupRuleobjects, each of which specifies a scheduled task that is used to back up a selection of resources. This parameter is required.- Returns:
this
-
advancedBackupSettings
@Stability(Stable) public CfnBackupPlan.BackupPlanResourceTypeProperty.Builder advancedBackupSettings(IResolvable advancedBackupSettings) Sets the value ofCfnBackupPlan.BackupPlanResourceTypeProperty.getAdvancedBackupSettings()- Parameters:
advancedBackupSettings- A list of backup options for each resource type.- Returns:
this
-
advancedBackupSettings
@Stability(Stable) public CfnBackupPlan.BackupPlanResourceTypeProperty.Builder advancedBackupSettings(List<? extends Object> advancedBackupSettings) Sets the value ofCfnBackupPlan.BackupPlanResourceTypeProperty.getAdvancedBackupSettings()- Parameters:
advancedBackupSettings- A list of backup options for each resource type.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnBackupPlan.BackupPlanResourceTypeProperty>- Returns:
- a new instance of
CfnBackupPlan.BackupPlanResourceTypeProperty - Throws:
NullPointerException- if any required attribute was not provided
-