# Google Cloud Net App V1 Client - Class BackupRetentionPolicy (1.12.0)

1.12.0 (latest) 1.11.0 1.10.2 1.9.0 1.8.1 1.7.0 1.6.1 1.4.0 1.3.1 1.2.1 1.1.1 1.0.1 0.3.1 0.2.6 0.1.1 Reference documentation and code samples for the Google Cloud Net App V1 Client class BackupRetentionPolicy.

Retention policy for backups in the backup vault

Generated from protobuf message `google.cloud.netapp.v1.BackupVault.BackupRetentionPolicy`

## Namespace

Google \\ Cloud \\ NetApp \\ V1 \\ BackupVault

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ backup_minimum_enforced_retention_days` | `int` Required. Minimum retention duration in days for backups in the backup vault. |
| `↳ daily_backup_immutable` | `bool` Optional. Indicates if the daily backups are immutable. At least one of daily_backup_immutable, weekly_backup_immutable, monthly_backup_immutable and manual_backup_immutable must be true. |
| `↳ weekly_backup_immutable` | `bool` Optional. Indicates if the weekly backups are immutable. At least one of daily_backup_immutable, weekly_backup_immutable, monthly_backup_immutable and manual_backup_immutable must be true. |
| `↳ monthly_backup_immutable` | `bool` Optional. Indicates if the monthly backups are immutable. At least one of daily_backup_immutable, weekly_backup_immutable, monthly_backup_immutable and manual_backup_immutable must be true. |
| `↳ manual_backup_immutable` | `bool` Optional. Indicates if the manual backups are immutable. At least one of daily_backup_immutable, weekly_backup_immutable, monthly_backup_immutable and manual_backup_immutable must be true. |

### getBackupMinimumEnforcedRetentionDays

Required. Minimum retention duration in days for backups in the backup
vault.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` |   |

### setBackupMinimumEnforcedRetentionDays

Required. Minimum retention duration in days for backups in the backup
vault.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getDailyBackupImmutable

Optional. Indicates if the daily backups are immutable.

At least one of daily_backup_immutable, weekly_backup_immutable,
monthly_backup_immutable and manual_backup_immutable must be true.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### setDailyBackupImmutable

Optional. Indicates if the daily backups are immutable.

At least one of daily_backup_immutable, weekly_backup_immutable,
monthly_backup_immutable and manual_backup_immutable must be true.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `bool` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getWeeklyBackupImmutable

Optional. Indicates if the weekly backups are immutable.

At least one of daily_backup_immutable, weekly_backup_immutable,
monthly_backup_immutable and manual_backup_immutable must be true.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### setWeeklyBackupImmutable

Optional. Indicates if the weekly backups are immutable.

At least one of daily_backup_immutable, weekly_backup_immutable,
monthly_backup_immutable and manual_backup_immutable must be true.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `bool` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getMonthlyBackupImmutable

Optional. Indicates if the monthly backups are immutable.

At least one of daily_backup_immutable, weekly_backup_immutable,
monthly_backup_immutable and manual_backup_immutable must be true.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### setMonthlyBackupImmutable

Optional. Indicates if the monthly backups are immutable.

At least one of daily_backup_immutable, weekly_backup_immutable,
monthly_backup_immutable and manual_backup_immutable must be true.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `bool` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getManualBackupImmutable

Optional. Indicates if the manual backups are immutable.

At least one of daily_backup_immutable, weekly_backup_immutable,
monthly_backup_immutable and manual_backup_immutable must be true.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### setManualBackupImmutable

Optional. Indicates if the manual backups are immutable.

At least one of daily_backup_immutable, weekly_backup_immutable,
monthly_backup_immutable and manual_backup_immutable must be true.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `bool` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |