Interface BackupRuleOrBuilder (0.32.0)
Stay organized with collections
Save and categorize content based on your preferences.
publicinterface BackupRuleOrBuilderextendsMessageOrBuilderImplements
MessageOrBuilderMethods
getBackupRetentionDays()
publicabstractintgetBackupRetentionDays()Required. Configures the duration for which backup data will be kept. It is defined in "days". The value should be greater than or equal to minimum enforced retention of the backup vault.
Minimum value is 1 and maximum value is 36159 for custom retention on-demand backup. Minimum and maximum values are workload specific for all other rules.
int32 backup_retention_days = 4 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
int |
The backupRetentionDays. |
getBackupScheduleOneofCase()
publicabstractBackupRule.BackupScheduleOneofCasegetBackupScheduleOneofCase()| Returns | |
|---|---|
| Type | Description |
BackupRule.BackupScheduleOneofCase |
|
getRuleId()
publicabstractStringgetRuleId() Required. Immutable. The unique id of this BackupRule. The rule_id is
unique per BackupPlan.The rule_id must start with a lowercase letter
followed by up to 62 lowercase letters, numbers, or hyphens. Pattern,
/a-z{,62}/.
string rule_id = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
| Returns | |
|---|---|
| Type | Description |
String |
The ruleId. |
getRuleIdBytes()
publicabstractByteStringgetRuleIdBytes() Required. Immutable. The unique id of this BackupRule. The rule_id is
unique per BackupPlan.The rule_id must start with a lowercase letter
followed by up to 62 lowercase letters, numbers, or hyphens. Pattern,
/a-z{,62}/.
string rule_id = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for ruleId. |
getStandardSchedule()
publicabstractStandardSchedulegetStandardSchedule()Optional. Defines a schedule that runs within the confines of a defined window of time.
.google.cloud.backupdr.v1.StandardSchedule standard_schedule = 5 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
StandardSchedule |
The standardSchedule. |
getStandardScheduleOrBuilder()
publicabstractStandardScheduleOrBuildergetStandardScheduleOrBuilder()Optional. Defines a schedule that runs within the confines of a defined window of time.
.google.cloud.backupdr.v1.StandardSchedule standard_schedule = 5 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
StandardScheduleOrBuilder |
|
hasStandardSchedule()
publicabstractbooleanhasStandardSchedule()Optional. Defines a schedule that runs within the confines of a defined window of time.
.google.cloud.backupdr.v1.StandardSchedule standard_schedule = 5 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the standardSchedule field is set. |