# Google Cloud Gke Backup V1 Client - Class Schedule (1.3.3)

1.3.3 (latest) 1.3.2 1.2.1 1.0.3 0.8.1 0.7.2 0.6.0 0.5.3 0.4.0 0.3.1 0.2.0 0.1.7 Reference documentation and code samples for the Google Cloud Gke Backup V1 Client class Schedule.

Defines scheduling parameters for automatically creating Backups
via this BackupPlan.

Generated from protobuf message `google.cloud.gkebackup.v1.BackupPlan.Schedule`

## Namespace

Google \\ Cloud \\ GkeBackup \\ V1 \\ BackupPlan

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ cron_schedule` | `string` Optional. A standard [cron](https://wikipedia.com/wiki/cron) string that defines a repeating schedule for creating Backups via this BackupPlan. This is mutually exclusive with the [rpo_config](https://docs.cloud.google.com/php/docs/reference/cloud-gke-backup/latest/V1.BackupPlan.Schedule#_Google_Cloud_GkeBackup_V1_BackupPlan_Schedule__getRpoConfig__) field since at most one schedule can be defined for a BackupPlan. If this is defined, then [backup_retain_days](https://docs.cloud.google.com/php/docs/reference/cloud-gke-backup/latest/V1.BackupPlan.RetentionPolicy#_Google_Cloud_GkeBackup_V1_BackupPlan_RetentionPolicy__getBackupRetainDays__) must also be defined. Default (empty): no automatic backup creation will occur. |
| `↳ paused` | `bool` Optional. This flag denotes whether automatic Backup creation is paused for this BackupPlan. Default: False |
| `↳ rpo_config` | `https://docs.cloud.google.com/php/docs/reference/cloud-gke-backup/latest/V1.RpoConfig` Optional. Defines the RPO schedule configuration for this BackupPlan. This is mutually exclusive with the [cron_schedule](https://docs.cloud.google.com/php/docs/reference/cloud-gke-backup/latest/V1.BackupPlan.Schedule#_Google_Cloud_GkeBackup_V1_BackupPlan_Schedule__getCronSchedule__) field since at most one schedule can be defined for a BackupPLan. If this is defined, then [backup_retain_days](https://docs.cloud.google.com/php/docs/reference/cloud-gke-backup/latest/V1.BackupPlan.RetentionPolicy#_Google_Cloud_GkeBackup_V1_BackupPlan_RetentionPolicy__getBackupRetainDays__) must also be defined. Default (empty): no automatic backup creation will occur. |
| `↳ next_scheduled_backup_time` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` Output only. Start time of next scheduled backup under this BackupPlan by either cron_schedule or rpo config. |

### getCronSchedule

Optional. A standard [cron](https://wikipedia.com/wiki/cron) string that
defines a repeating schedule for creating Backups via this BackupPlan.

This is mutually exclusive with the
[rpo_config](https://docs.cloud.google.com/php/docs/reference/cloud-gke-backup/latest/V1.BackupPlan.Schedule#_Google_Cloud_GkeBackup_V1_BackupPlan_Schedule__getRpoConfig__)
field since at most one schedule can be defined for a BackupPlan. If this
is defined, then
[backup_retain_days](https://docs.cloud.google.com/php/docs/reference/cloud-gke-backup/latest/V1.BackupPlan.RetentionPolicy#_Google_Cloud_GkeBackup_V1_BackupPlan_RetentionPolicy__getBackupRetainDays__)
must also be defined.
Default (empty): no automatic backup creation will occur.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setCronSchedule

Optional. A standard [cron](https://wikipedia.com/wiki/cron) string that
defines a repeating schedule for creating Backups via this BackupPlan.

This is mutually exclusive with the
[rpo_config](https://docs.cloud.google.com/php/docs/reference/cloud-gke-backup/latest/V1.BackupPlan.Schedule#_Google_Cloud_GkeBackup_V1_BackupPlan_Schedule__getRpoConfig__)
field since at most one schedule can be defined for a BackupPlan. If this
is defined, then
[backup_retain_days](https://docs.cloud.google.com/php/docs/reference/cloud-gke-backup/latest/V1.BackupPlan.RetentionPolicy#_Google_Cloud_GkeBackup_V1_BackupPlan_RetentionPolicy__getBackupRetainDays__)
must also be defined.
Default (empty): no automatic backup creation will occur.

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

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

### getPaused

Optional. This flag denotes whether automatic Backup creation is paused
for this BackupPlan.

Default: False

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

### setPaused

Optional. This flag denotes whether automatic Backup creation is paused
for this BackupPlan.

Default: False

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

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

### getRpoConfig

Optional. Defines the RPO schedule configuration for this BackupPlan.

This is mutually exclusive with the
[cron_schedule](https://docs.cloud.google.com/php/docs/reference/cloud-gke-backup/latest/V1.BackupPlan.Schedule#_Google_Cloud_GkeBackup_V1_BackupPlan_Schedule__getCronSchedule__)
field since at most one schedule can be defined for a BackupPLan. If this
is defined, then
[backup_retain_days](https://docs.cloud.google.com/php/docs/reference/cloud-gke-backup/latest/V1.BackupPlan.RetentionPolicy#_Google_Cloud_GkeBackup_V1_BackupPlan_RetentionPolicy__getBackupRetainDays__)
must also be defined.
Default (empty): no automatic backup creation will occur.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-gke-backup/latest/V1.RpoConfig|null` |   |

### hasRpoConfig

### clearRpoConfig

### setRpoConfig

Optional. Defines the RPO schedule configuration for this BackupPlan.

This is mutually exclusive with the
[cron_schedule](https://docs.cloud.google.com/php/docs/reference/cloud-gke-backup/latest/V1.BackupPlan.Schedule#_Google_Cloud_GkeBackup_V1_BackupPlan_Schedule__getCronSchedule__)
field since at most one schedule can be defined for a BackupPLan. If this
is defined, then
[backup_retain_days](https://docs.cloud.google.com/php/docs/reference/cloud-gke-backup/latest/V1.BackupPlan.RetentionPolicy#_Google_Cloud_GkeBackup_V1_BackupPlan_RetentionPolicy__getBackupRetainDays__)
must also be defined.
Default (empty): no automatic backup creation will occur.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-gke-backup/latest/V1.RpoConfig` |

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

### getNextScheduledBackupTime

Output only. Start time of next scheduled backup under this BackupPlan by
either cron_schedule or rpo config.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp|null` |   |

### hasNextScheduledBackupTime

### clearNextScheduledBackupTime

### setNextScheduledBackupTime

Output only. Start time of next scheduled backup under this BackupPlan by
either cron_schedule or rpo config.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` |

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