# Interface AutomatedBackupConfigOrBuilder (0.39.0)

0.39.0 (latest) 0.37.0 0.34.0 0.33.0 0.31.0 0.29.0 0.28.0 0.26.0 0.24.0 0.22.0 0.21.0 0.20.0 0.19.0 0.18.0 0.16.0 0.14.0 0.13.0 0.10.0 0.9.0 0.8.0 0.6.0 0.5.0 0.4.0 0.3.0 0.2.0 0.1.0

    public interface AutomatedBackupConfigOrBuilder extends MessageOrBuilder

## Implements

[MessageOrBuilder](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.MessageOrBuilder.html)

## Methods

### getAutomatedBackupMode()

    public abstract AutomatedBackupConfig.AutomatedBackupMode getAutomatedBackupMode()

Optional. The automated backup mode. If the mode is disabled, the other
fields will be ignored.

`
.google.cloud.memorystore.v1.AutomatedBackupConfig.AutomatedBackupMode automated_backup_mode = 1 [(.google.api.field_behavior) = OPTIONAL];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-valkey/latest/com.google.cloud.memorystore.v1.AutomatedBackupConfig.AutomatedBackupMode` | The automatedBackupMode. |

### getAutomatedBackupModeValue()

    public abstract int getAutomatedBackupModeValue()

Optional. The automated backup mode. If the mode is disabled, the other
fields will be ignored.

`
.google.cloud.memorystore.v1.AutomatedBackupConfig.AutomatedBackupMode automated_backup_mode = 1 [(.google.api.field_behavior) = OPTIONAL];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | The enum numeric value on the wire for automatedBackupMode. |

### getFixedFrequencySchedule()

    public abstract AutomatedBackupConfig.FixedFrequencySchedule getFixedFrequencySchedule()

Optional. Trigger automated backups at a fixed frequency.

`
.google.cloud.memorystore.v1.AutomatedBackupConfig.FixedFrequencySchedule fixed_frequency_schedule = 2 [(.google.api.field_behavior) = OPTIONAL];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-valkey/latest/com.google.cloud.memorystore.v1.AutomatedBackupConfig.FixedFrequencySchedule` | The fixedFrequencySchedule. |

### getFixedFrequencyScheduleOrBuilder()

    public abstract AutomatedBackupConfig.FixedFrequencyScheduleOrBuilder getFixedFrequencyScheduleOrBuilder()

Optional. Trigger automated backups at a fixed frequency.

`
.google.cloud.memorystore.v1.AutomatedBackupConfig.FixedFrequencySchedule fixed_frequency_schedule = 2 [(.google.api.field_behavior) = OPTIONAL];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-valkey/latest/com.google.cloud.memorystore.v1.AutomatedBackupConfig.FixedFrequencyScheduleOrBuilder` |   |

### getRetention()

    public abstract Duration getRetention()

Optional. How long to keep automated backups before the backups are
deleted. The value should be between 1 day and 365 days. If not specified,
the default value is 35 days.

`.google.protobuf.Duration retention = 3 [(.google.api.field_behavior) = OPTIONAL];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.Duration.html` | The retention. |

### getRetentionOrBuilder()

    public abstract DurationOrBuilder getRetentionOrBuilder()

Optional. How long to keep automated backups before the backups are
deleted. The value should be between 1 day and 365 days. If not specified,
the default value is 35 days.

`.google.protobuf.Duration retention = 3 [(.google.api.field_behavior) = OPTIONAL];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.DurationOrBuilder.html` |   |

### getScheduleCase()

    public abstract AutomatedBackupConfig.ScheduleCase getScheduleCase()

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-valkey/latest/com.google.cloud.memorystore.v1.AutomatedBackupConfig.ScheduleCase` |   |

### hasFixedFrequencySchedule()

    public abstract boolean hasFixedFrequencySchedule()

Optional. Trigger automated backups at a fixed frequency.

`
.google.cloud.memorystore.v1.AutomatedBackupConfig.FixedFrequencySchedule fixed_frequency_schedule = 2 [(.google.api.field_behavior) = OPTIONAL];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the fixedFrequencySchedule field is set. |

### hasRetention()

    public abstract boolean hasRetention()

Optional. How long to keep automated backups before the backups are
deleted. The value should be between 1 day and 365 days. If not specified,
the default value is 35 days.

`.google.protobuf.Duration retention = 3 [(.google.api.field_behavior) = OPTIONAL];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the retention field is set. |