Interface BackupPlan.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<BackupPlan.Builder,BackupPlan>,SdkBuilder<BackupPlan.Builder,BackupPlan>,SdkPojo
- Enclosing class:
- BackupPlan
public static interface BackupPlan.Builder extends SdkPojo, CopyableBuilder<BackupPlan.Builder,BackupPlan>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description BackupPlan.BuilderadvancedBackupSettings(Collection<AdvancedBackupSetting> advancedBackupSettings)Contains a list ofBackupOptionsfor each resource type.BackupPlan.BuilderadvancedBackupSettings(Consumer<AdvancedBackupSetting.Builder>... advancedBackupSettings)Contains a list ofBackupOptionsfor each resource type.BackupPlan.BuilderadvancedBackupSettings(AdvancedBackupSetting... advancedBackupSettings)Contains a list ofBackupOptionsfor each resource type.BackupPlan.BuilderbackupPlanName(String backupPlanName)The display name of a backup plan.BackupPlan.Builderrules(Collection<BackupRule> rules)An array ofBackupRuleobjects, each of which specifies a scheduled task that is used to back up a selection of resources.BackupPlan.Builderrules(Consumer<BackupRule.Builder>... rules)An array ofBackupRuleobjects, each of which specifies a scheduled task that is used to back up a selection of resources.BackupPlan.Builderrules(BackupRule... rules)An array ofBackupRuleobjects, each of which specifies a scheduled task that is used to back up a selection of resources.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
-
-
-
Method Detail
-
backupPlanName
BackupPlan.Builder backupPlanName(String backupPlanName)
The display name of a backup plan. Must contain 1 to 50 alphanumeric or '-_.' characters.
- Parameters:
backupPlanName- The display name of a backup plan. Must contain 1 to 50 alphanumeric or '-_.' characters.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
rules
BackupPlan.Builder rules(Collection<BackupRule> rules)
An array of
BackupRuleobjects, each of which specifies a scheduled task that is used to back up a selection of resources.- Parameters:
rules- An array ofBackupRuleobjects, each of which specifies a scheduled task that is used to back up a selection of resources.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
rules
BackupPlan.Builder rules(BackupRule... rules)
An array of
BackupRuleobjects, each of which specifies a scheduled task that is used to back up a selection of resources.- Parameters:
rules- An array ofBackupRuleobjects, each of which specifies a scheduled task that is used to back up a selection of resources.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
rules
BackupPlan.Builder rules(Consumer<BackupRule.Builder>... rules)
An array of
This is a convenience method that creates an instance of theBackupRuleobjects, each of which specifies a scheduled task that is used to back up a selection of resources.BackupRule.Builderavoiding the need to create one manually viaBackupRule.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#rules(List.) - Parameters:
rules- a consumer that will call methods onBackupRule.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#rules(java.util.Collection)
-
advancedBackupSettings
BackupPlan.Builder advancedBackupSettings(Collection<AdvancedBackupSetting> advancedBackupSettings)
Contains a list of
BackupOptionsfor each resource type.- Parameters:
advancedBackupSettings- Contains a list ofBackupOptionsfor each resource type.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
advancedBackupSettings
BackupPlan.Builder advancedBackupSettings(AdvancedBackupSetting... advancedBackupSettings)
Contains a list of
BackupOptionsfor each resource type.- Parameters:
advancedBackupSettings- Contains a list ofBackupOptionsfor each resource type.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
advancedBackupSettings
BackupPlan.Builder advancedBackupSettings(Consumer<AdvancedBackupSetting.Builder>... advancedBackupSettings)
Contains a list of
This is a convenience method that creates an instance of theBackupOptionsfor each resource type.AdvancedBackupSetting.Builderavoiding the need to create one manually viaAdvancedBackupSetting.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#advancedBackupSettings(List.) - Parameters:
advancedBackupSettings- a consumer that will call methods onAdvancedBackupSetting.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#advancedBackupSettings(java.util.Collection)
-
-