public interface AutomatedBackupPolicyOrBuilder extends MessageOrBuilder
Implements
MessageOrBuilderMethods
containsLabels(String key)
public abstract boolean containsLabels(String key)
Labels to apply to backups created using this configuration.
map<string, string> labels = 7;
Name | Description |
key |
String |
Type | Description |
boolean |
getBackupWindow()
public abstract 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;
Type | Description |
Duration |
The backupWindow. |
getBackupWindowOrBuilder()
public abstract 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;
Type | Description |
DurationOrBuilder |
getEnabled()
public abstract boolean getEnabled()
Whether automated automated backups are enabled. If not set, defaults to true.
optional bool enabled = 1;
Type | Description |
boolean |
The enabled. |
getEncryptionConfig()
public abstract 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.v1alpha.EncryptionConfig encryption_config = 8 [(.google.api.field_behavior) = OPTIONAL];
Type | Description |
EncryptionConfig |
The encryptionConfig. |
getEncryptionConfigOrBuilder()
public abstract 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.v1alpha.EncryptionConfig encryption_config = 8 [(.google.api.field_behavior) = OPTIONAL];
Type | Description |
EncryptionConfigOrBuilder |
getLabels()
public abstract Map<String,String> getLabels()
Use #getLabelsMap() instead.
Type | Description |
Map<String,String> |
getLabelsCount()
public abstract int getLabelsCount()
Labels to apply to backups created using this configuration.
map<string, string> labels = 7;
Type | Description |
int |
getLabelsMap()
public abstract Map<String,String> getLabelsMap()
Labels to apply to backups created using this configuration.
map<string, string> labels = 7;
Type | Description |
Map<String,String> |
getLabelsOrDefault(String key, String defaultValue)
public abstract String getLabelsOrDefault(String key, String defaultValue)
Labels to apply to backups created using this configuration.
map<string, string> labels = 7;
Name | Description |
key |
String |
defaultValue |
String |
Type | Description |
String |
getLabelsOrThrow(String key)
public abstract String getLabelsOrThrow(String key)
Labels to apply to backups created using this configuration.
map<string, string> labels = 7;
Name | Description |
key |
String |
Type | Description |
String |
getLocation()
public abstract 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;
Type | Description |
String |
The location. |
getLocationBytes()
public abstract 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;
Type | Description |
ByteString |
The bytes for location. |
getQuantityBasedRetention()
public abstract AutomatedBackupPolicy.QuantityBasedRetention getQuantityBasedRetention()
Quantity-based Backup retention policy to retain recent backups.
.google.cloud.alloydb.v1alpha.AutomatedBackupPolicy.QuantityBasedRetention quantity_based_retention = 5;
Type | Description |
AutomatedBackupPolicy.QuantityBasedRetention |
The quantityBasedRetention. |
getQuantityBasedRetentionOrBuilder()
public abstract AutomatedBackupPolicy.QuantityBasedRetentionOrBuilder getQuantityBasedRetentionOrBuilder()
Quantity-based Backup retention policy to retain recent backups.
.google.cloud.alloydb.v1alpha.AutomatedBackupPolicy.QuantityBasedRetention quantity_based_retention = 5;
Type | Description |
AutomatedBackupPolicy.QuantityBasedRetentionOrBuilder |
getRetentionCase()
public abstract AutomatedBackupPolicy.RetentionCase getRetentionCase()
Type | Description |
AutomatedBackupPolicy.RetentionCase |
getScheduleCase()
public abstract AutomatedBackupPolicy.ScheduleCase getScheduleCase()
Type | Description |
AutomatedBackupPolicy.ScheduleCase |
getTimeBasedRetention()
public abstract AutomatedBackupPolicy.TimeBasedRetention getTimeBasedRetention()
Time-based Backup retention policy.
.google.cloud.alloydb.v1alpha.AutomatedBackupPolicy.TimeBasedRetention time_based_retention = 4;
Type | Description |
AutomatedBackupPolicy.TimeBasedRetention |
The timeBasedRetention. |
getTimeBasedRetentionOrBuilder()
public abstract AutomatedBackupPolicy.TimeBasedRetentionOrBuilder getTimeBasedRetentionOrBuilder()
Time-based Backup retention policy.
.google.cloud.alloydb.v1alpha.AutomatedBackupPolicy.TimeBasedRetention time_based_retention = 4;
Type | Description |
AutomatedBackupPolicy.TimeBasedRetentionOrBuilder |
getWeeklySchedule()
public abstract AutomatedBackupPolicy.WeeklySchedule getWeeklySchedule()
Weekly schedule for the Backup.
.google.cloud.alloydb.v1alpha.AutomatedBackupPolicy.WeeklySchedule weekly_schedule = 2;
Type | Description |
AutomatedBackupPolicy.WeeklySchedule |
The weeklySchedule. |
getWeeklyScheduleOrBuilder()
public abstract AutomatedBackupPolicy.WeeklyScheduleOrBuilder getWeeklyScheduleOrBuilder()
Weekly schedule for the Backup.
.google.cloud.alloydb.v1alpha.AutomatedBackupPolicy.WeeklySchedule weekly_schedule = 2;
Type | Description |
AutomatedBackupPolicy.WeeklyScheduleOrBuilder |
hasBackupWindow()
public abstract 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;
Type | Description |
boolean |
Whether the backupWindow field is set. |
hasEnabled()
public abstract boolean hasEnabled()
Whether automated automated backups are enabled. If not set, defaults to true.
optional bool enabled = 1;
Type | Description |
boolean |
Whether the enabled field is set. |
hasEncryptionConfig()
public abstract 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.v1alpha.EncryptionConfig encryption_config = 8 [(.google.api.field_behavior) = OPTIONAL];
Type | Description |
boolean |
Whether the encryptionConfig field is set. |
hasQuantityBasedRetention()
public abstract boolean hasQuantityBasedRetention()
Quantity-based Backup retention policy to retain recent backups.
.google.cloud.alloydb.v1alpha.AutomatedBackupPolicy.QuantityBasedRetention quantity_based_retention = 5;
Type | Description |
boolean |
Whether the quantityBasedRetention field is set. |
hasTimeBasedRetention()
public abstract boolean hasTimeBasedRetention()
Time-based Backup retention policy.
.google.cloud.alloydb.v1alpha.AutomatedBackupPolicy.TimeBasedRetention time_based_retention = 4;
Type | Description |
boolean |
Whether the timeBasedRetention field is set. |
hasWeeklySchedule()
public abstract boolean hasWeeklySchedule()
Weekly schedule for the Backup.
.google.cloud.alloydb.v1alpha.AutomatedBackupPolicy.WeeklySchedule weekly_schedule = 2;
Type | Description |
boolean |
Whether the weeklySchedule field is set. |