Class ClusterAutomatedBackupPolicy


  • public final class ClusterAutomatedBackupPolicy
    extends java.lang.Object
    • Method Detail

      • backupWindow

        public java.util.Optional<java.lang.String> backupWindow()
        Returns:
        The length of the time window during which a backup can be taken. If a backup does not succeed within this time window, it will be canceled and considered failed. The backup window must be at least 5 minutes long. There is no upper bound on the window. If not set, it will default to 1 hour. A duration in seconds with up to nine fractional digits, terminated by 's'. Example: "3.5s".
      • enabled

        public java.util.Optional<java.lang.Boolean> enabled()
        Returns:
        Whether automated backups are enabled.
      • encryptionConfig

        public java.util.Optional<ClusterAutomatedBackupPolicyEncryptionConfig> encryptionConfig()
        Returns:
        EncryptionConfig describes the encryption config of a cluster or a backup that is encrypted with a CMEK (customer-managed encryption key). Structure is documented below.
      • labels

        public java.util.Map<java.lang.String,​java.lang.String> labels()
        Returns:
        Labels to apply to backups created using this configuration.
      • location

        public java.util.Optional<java.lang.String> location()
        Returns:
        The location where the backup will be stored. Currently, the only supported option is to store the backup in the same region as the cluster.
      • quantityBasedRetention

        public java.util.Optional<ClusterAutomatedBackupPolicyQuantityBasedRetention> quantityBasedRetention()
        Returns:
        Quantity-based Backup retention policy to retain recent backups. Conflicts with 'time_based_retention', both can't be set together. Structure is documented below.
      • timeBasedRetention

        public java.util.Optional<ClusterAutomatedBackupPolicyTimeBasedRetention> timeBasedRetention()
        Returns:
        Time-based Backup retention policy. Conflicts with 'quantity_based_retention', both can't be set together. Structure is documented below.