Class CfnBackupSelection.Builder

java.lang.Object
software.amazon.awscdk.services.backup.CfnBackupSelection.Builder
All Implemented Interfaces:
software.amazon.jsii.Builder<CfnBackupSelection>
Enclosing class:
CfnBackupSelection

@Stability(Stable) public static final class CfnBackupSelection.Builder extends Object implements software.amazon.jsii.Builder<CfnBackupSelection>
A fluent builder for CfnBackupSelection.
  • Method Details

    • create

      @Stability(Stable) public static CfnBackupSelection.Builder create(Construct scope, String id)
      Parameters:
      scope -
      • scope in which this resource is defined.
      This parameter is required.
      id -
      • scoped id of the resource.
      This parameter is required.
      Returns:
      a new instance of CfnBackupSelection.Builder.
    • backupPlanId

      @Stability(Stable) public CfnBackupSelection.Builder backupPlanId(String backupPlanId)
      Uniquely identifies a backup plan.

      Parameters:
      backupPlanId - Uniquely identifies a backup plan. This parameter is required.
      Returns:
      this
    • backupSelection

      @Stability(Stable) public CfnBackupSelection.Builder backupSelection(IResolvable backupSelection)
      Specifies the body of a request to assign a set of resources to a backup plan.

      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.

      Parameters:
      backupSelection - Specifies the body of a request to assign a set of resources to a backup plan. This parameter is required.
      Returns:
      this
    • backupSelection

      @Stability(Stable) public CfnBackupSelection.Builder backupSelection(CfnBackupSelection.BackupSelectionResourceTypeProperty backupSelection)
      Specifies the body of a request to assign a set of resources to a backup plan.

      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.

      Parameters:
      backupSelection - Specifies the body of a request to assign a set of resources to a backup plan. This parameter is required.
      Returns:
      this
    • build

      @Stability(Stable) public CfnBackupSelection build()
      Specified by:
      build in interface software.amazon.jsii.Builder<CfnBackupSelection>
      Returns:
      a newly built instance of CfnBackupSelection.