Interface BackupPlan.Builder

    • 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 BackupRule objects, each of which specifies a scheduled task that is used to back up a selection of resources.

        Parameters:
        rules - An array of BackupRule objects, 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 BackupRule objects, each of which specifies a scheduled task that is used to back up a selection of resources.

        Parameters:
        rules - An array of BackupRule objects, 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 BackupRule objects, each of which specifies a scheduled task that is used to back up a selection of resources.

        This is a convenience method that creates an instance of the BackupRule.Builder avoiding the need to create one manually via BackupRule.builder().

        When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to #rules(List).

        Parameters:
        rules - a consumer that will call methods on BackupRule.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 BackupOptions for each resource type.

        Parameters:
        advancedBackupSettings - Contains a list of BackupOptions for 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 BackupOptions for each resource type.

        Parameters:
        advancedBackupSettings - Contains a list of BackupOptions for each resource type.
        Returns:
        Returns a reference to this object so that method calls can be chained together.