# Google Cloud Container Analysis V1 Client - Class ExportSBOMRequest (1.2.2)

1.2.2 (latest) 1.2.1 1.1.1 1.0.4 0.5.7 0.4.0 0.3.4 0.2.15 Reference documentation and code samples for the Google Cloud Container Analysis V1 Client class ExportSBOMRequest.

The request to generate and export SBOM. Target must be specified for the
request.

Generated from protobuf message `google.devtools.containeranalysis.v1.ExportSBOMRequest`

## Namespace

Google \\ Cloud \\ ContainerAnalysis \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ name` | `string` Required. The name of the resource in the form of `projects/[PROJECT_ID]/resources/[RESOURCE_URL]`. |
| `↳ cloud_storage_location` | `https://docs.cloud.google.com/php/docs/reference/cloud-container-analysis/latest/V1.ExportSBOMRequest.CloudStorageLocation` Optional. Empty placeholder to denote that this is a Google Cloud Storage export request. |

### getName

Required. The name of the resource in the form of
`projects/[PROJECT_ID]/resources/[RESOURCE_URL]`.

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

### setName

Required. The name of the resource in the form of
`projects/[PROJECT_ID]/resources/[RESOURCE_URL]`.

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

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

### getCloudStorageLocation

Optional. Empty placeholder to denote that this is a Google Cloud Storage
export request.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-container-analysis/latest/V1.ExportSBOMRequest.CloudStorageLocation|null` |   |

### hasCloudStorageLocation

### setCloudStorageLocation

Optional. Empty placeholder to denote that this is a Google Cloud Storage
export request.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-container-analysis/latest/V1.ExportSBOMRequest.CloudStorageLocation` |

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

### getTarget

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