1.7.1 (latest) 1.7.0 1.6.3 1.5.0 1.4.1 1.3.0 1.2.0 1.1.3 1.0.0 0.10.3 0.9.0 0.8.0 0.7.1 0.6.0 0.5.0 0.4.0 0.3.0 0.2.1 0.1.3 Reference documentation and code samples for the Google Cloud AlloyDB for PostgreSQL V1 Client class ExportClusterRequest.

Export cluster request.

Generated from protobuf message `google.cloud.alloydb.v1.ExportClusterRequest`

## Namespace

Google \\ Cloud \\ AlloyDb \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ gcs_destination` | `https://docs.cloud.google.com/php/docs/reference/cloud-alloydb/latest/V1.GcsDestination` Required. Option to export data to cloud storage. |
| `↳ csv_export_options` | `https://docs.cloud.google.com/php/docs/reference/cloud-alloydb/latest/V1.ExportClusterRequest.CsvExportOptions` Options for exporting data in CSV format. Required field to be set for CSV file type. |
| `↳ sql_export_options` | `https://docs.cloud.google.com/php/docs/reference/cloud-alloydb/latest/V1.ExportClusterRequest.SqlExportOptions` Options for exporting data in SQL format. Required field to be set for SQL file type. |
| `↳ name` | `string` Required. The resource name of the cluster. |
| `↳ database` | `string` Required. Name of the database where the export command will be executed. Note - Value provided should be the same as expected from `SELECT current_database();` and NOT as a resource reference. |

### getGcsDestination

Required. Option to export data to cloud storage.

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

### hasGcsDestination

### setGcsDestination

Required. Option to export data to cloud storage.

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

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

### getCsvExportOptions

Options for exporting data in CSV format. Required field to be set for
CSV file type.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-alloydb/latest/V1.ExportClusterRequest.CsvExportOptions|null` |   |

### hasCsvExportOptions

### setCsvExportOptions

Options for exporting data in CSV format. Required field to be set for
CSV file type.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-alloydb/latest/V1.ExportClusterRequest.CsvExportOptions` |

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

### getSqlExportOptions

Options for exporting data in SQL format. Required field to be set for
SQL file type.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-alloydb/latest/V1.ExportClusterRequest.SqlExportOptions|null` |   |

### hasSqlExportOptions

### setSqlExportOptions

Options for exporting data in SQL format. Required field to be set for
SQL file type.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-alloydb/latest/V1.ExportClusterRequest.SqlExportOptions` |

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

### getName

Required. The resource name of the cluster.

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

### setName

Required. The resource name of the cluster.

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

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

### getDatabase

Required. Name of the database where the export command will be executed.

Note - Value provided should be the same as expected from
`SELECT current_database();` and NOT as a resource reference.

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

### setDatabase

Required. Name of the database where the export command will be executed.

Note - Value provided should be the same as expected from
`SELECT current_database();` and NOT as a resource reference.

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

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

### getDestination

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

### getExportOptions

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

### static::build

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `string` Required. The resource name of the cluster. Please see AlloyDBAdminClient::clusterName() for help formatting this field. |
| `gcsDestination` | `https://docs.cloud.google.com/php/docs/reference/cloud-alloydb/latest/V1.GcsDestination` Required. Option to export data to cloud storage. |
| `database` | `string` Required. Name of the database where the export command will be executed. Note - Value provided should be the same as expected from `SELECT current_database();` and NOT as a resource reference. |
| `csvExportOptions` | `https://docs.cloud.google.com/php/docs/reference/cloud-alloydb/latest/V1.ExportClusterRequest.CsvExportOptions` Options for exporting data in CSV format. Required field to be set for CSV file type. |
| `sqlExportOptions` | `https://docs.cloud.google.com/php/docs/reference/cloud-alloydb/latest/V1.ExportClusterRequest.SqlExportOptions` Options for exporting data in SQL format. Required field to be set for SQL file type. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-alloydb/latest/V1.ExportClusterRequest` |   |