Interface AutomatedBackupPolicyOrBuilder

  • All Superinterfaces:
    com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
    All Known Implementing Classes:
    AutomatedBackupPolicy, AutomatedBackupPolicy.Builder

    public interface AutomatedBackupPolicyOrBuilder
    extends com.google.protobuf.MessageOrBuilder
    • Method Detail

      • hasWeeklySchedule

        boolean hasWeeklySchedule()
         Weekly schedule for the Backup.
         
        .google.cloud.alloydb.v1beta.AutomatedBackupPolicy.WeeklySchedule weekly_schedule = 2;
        Returns:
        Whether the weeklySchedule field is set.
      • getWeeklySchedule

        AutomatedBackupPolicy.WeeklySchedule getWeeklySchedule()
         Weekly schedule for the Backup.
         
        .google.cloud.alloydb.v1beta.AutomatedBackupPolicy.WeeklySchedule weekly_schedule = 2;
        Returns:
        The weeklySchedule.
      • hasTimeBasedRetention

        boolean hasTimeBasedRetention()
         Time-based Backup retention policy.
         
        .google.cloud.alloydb.v1beta.AutomatedBackupPolicy.TimeBasedRetention time_based_retention = 4;
        Returns:
        Whether the timeBasedRetention field is set.
      • getTimeBasedRetention

        AutomatedBackupPolicy.TimeBasedRetention getTimeBasedRetention()
         Time-based Backup retention policy.
         
        .google.cloud.alloydb.v1beta.AutomatedBackupPolicy.TimeBasedRetention time_based_retention = 4;
        Returns:
        The timeBasedRetention.
      • getTimeBasedRetentionOrBuilder

        AutomatedBackupPolicy.TimeBasedRetentionOrBuilder getTimeBasedRetentionOrBuilder()
         Time-based Backup retention policy.
         
        .google.cloud.alloydb.v1beta.AutomatedBackupPolicy.TimeBasedRetention time_based_retention = 4;
      • hasQuantityBasedRetention

        boolean hasQuantityBasedRetention()
         Quantity-based Backup retention policy to retain recent backups.
         
        .google.cloud.alloydb.v1beta.AutomatedBackupPolicy.QuantityBasedRetention quantity_based_retention = 5;
        Returns:
        Whether the quantityBasedRetention field is set.
      • getQuantityBasedRetention

        AutomatedBackupPolicy.QuantityBasedRetention getQuantityBasedRetention()
         Quantity-based Backup retention policy to retain recent backups.
         
        .google.cloud.alloydb.v1beta.AutomatedBackupPolicy.QuantityBasedRetention quantity_based_retention = 5;
        Returns:
        The quantityBasedRetention.
      • getQuantityBasedRetentionOrBuilder

        AutomatedBackupPolicy.QuantityBasedRetentionOrBuilder getQuantityBasedRetentionOrBuilder()
         Quantity-based Backup retention policy to retain recent backups.
         
        .google.cloud.alloydb.v1beta.AutomatedBackupPolicy.QuantityBasedRetention quantity_based_retention = 5;
      • hasEnabled

        boolean hasEnabled()
         Whether automated automated backups are enabled. If not set, defaults to
         true.
         
        optional bool enabled = 1;
        Returns:
        Whether the enabled field is set.
      • getEnabled

        boolean getEnabled()
         Whether automated automated backups are enabled. If not set, defaults to
         true.
         
        optional bool enabled = 1;
        Returns:
        The enabled.
      • hasBackupWindow

        boolean hasBackupWindow()
         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 defaults to 1 hour.
         
        .google.protobuf.Duration backup_window = 3;
        Returns:
        Whether the backupWindow field is set.
      • getBackupWindow

        com.google.protobuf.Duration getBackupWindow()
         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 defaults to 1 hour.
         
        .google.protobuf.Duration backup_window = 3;
        Returns:
        The backupWindow.
      • getBackupWindowOrBuilder

        com.google.protobuf.DurationOrBuilder getBackupWindowOrBuilder()
         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 defaults to 1 hour.
         
        .google.protobuf.Duration backup_window = 3;
      • hasEncryptionConfig

        boolean hasEncryptionConfig()
         Optional. The encryption config can be specified to encrypt the
         backups with a customer-managed encryption key (CMEK). When this field is
         not specified, the backup will then use default encryption scheme to
         protect the user data.
         
        .google.cloud.alloydb.v1beta.EncryptionConfig encryption_config = 8 [(.google.api.field_behavior) = OPTIONAL];
        Returns:
        Whether the encryptionConfig field is set.
      • getEncryptionConfig

        EncryptionConfig getEncryptionConfig()
         Optional. The encryption config can be specified to encrypt the
         backups with a customer-managed encryption key (CMEK). When this field is
         not specified, the backup will then use default encryption scheme to
         protect the user data.
         
        .google.cloud.alloydb.v1beta.EncryptionConfig encryption_config = 8 [(.google.api.field_behavior) = OPTIONAL];
        Returns:
        The encryptionConfig.
      • getEncryptionConfigOrBuilder

        EncryptionConfigOrBuilder getEncryptionConfigOrBuilder()
         Optional. The encryption config can be specified to encrypt the
         backups with a customer-managed encryption key (CMEK). When this field is
         not specified, the backup will then use default encryption scheme to
         protect the user data.
         
        .google.cloud.alloydb.v1beta.EncryptionConfig encryption_config = 8 [(.google.api.field_behavior) = OPTIONAL];
      • getLocation

        String getLocation()
         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.
        
         If empty, defaults to the region of the cluster.
         
        string location = 6;
        Returns:
        The location.
      • getLocationBytes

        com.google.protobuf.ByteString getLocationBytes()
         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.
        
         If empty, defaults to the region of the cluster.
         
        string location = 6;
        Returns:
        The bytes for location.
      • getLabelsCount

        int getLabelsCount()
         Labels to apply to backups created using this configuration.
         
        map<string, string> labels = 7;
      • containsLabels

        boolean containsLabels​(String key)
         Labels to apply to backups created using this configuration.
         
        map<string, string> labels = 7;
      • getLabelsMap

        Map<String,​String> getLabelsMap()
         Labels to apply to backups created using this configuration.
         
        map<string, string> labels = 7;
      • getLabelsOrDefault

        String getLabelsOrDefault​(String key,
                                  String defaultValue)
         Labels to apply to backups created using this configuration.
         
        map<string, string> labels = 7;
      • getLabelsOrThrow

        String getLabelsOrThrow​(String key)
         Labels to apply to backups created using this configuration.
         
        map<string, string> labels = 7;