Reference documentation and code samples for the Google Cloud Design Center V1 Client class IaCFile.

IaCFile represents a single infrastructure as code file.

Generated from protobuf message `google.cloud.designcenter.v1.IaCFile`

## Namespace

Google \\ Cloud \\ DesignCenter \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ name` | `string` Required. The name of the file. |
| `↳ content` | `string` Optional. The content of the file. The content of the file can be read and passed as a string. For example, for a Terraform file, the content is the HCL content of the file. |

### getName

Required. The name of the file.

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

### setName

Required. The name of the file.

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

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

### getContent

Optional. The content of the file. The content of the file can be read and
passed as a string. For example, for a Terraform file, the content is the
HCL content of the file.

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

### setContent

Optional. The content of the file. The content of the file can be read and
passed as a string. For example, for a Terraform file, the content is the
HCL content of the file.

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

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