Class BackupResource.Builder

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

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

    • create

      @Stability(Stable) public static BackupResource.Builder create(String resource, software.constructs.Construct construct)
      Parameters:
      resource -
      construct -
      Returns:
      a new instance of BackupResource.Builder.
    • create

      @Stability(Stable) public static BackupResource.Builder create(String resource)
      Parameters:
      resource -
      Returns:
      a new instance of BackupResource.Builder.
    • create

      @Stability(Stable) public static BackupResource.Builder create()
      Returns:
      a new instance of BackupResource.Builder.
    • key

      @Stability(Stable) public BackupResource.Builder key(String key)
      The key in a key-value pair.

      For example, in "ec2:ResourceTag/Department": "accounting", ec2:ResourceTag/Department is the key.

      Parameters:
      key - The key in a key-value pair. This parameter is required.
      Returns:
      this
    • value

      @Stability(Stable) public BackupResource.Builder value(String value)
      The value in a key-value pair.

      For example, in "ec2:ResourceTag/Department": "accounting", accounting is the value.

      Parameters:
      value - The value in a key-value pair. This parameter is required.
      Returns:
      this
    • operation

      @Stability(Stable) public BackupResource.Builder operation(TagOperation operation)
      An operation that is applied to a key-value pair used to filter resources in a selection.

      Default: STRING_EQUALS

      Parameters:
      operation - An operation that is applied to a key-value pair used to filter resources in a selection. This parameter is required.
      Returns:
      this
    • build

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