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

Configuration for exporting a resource as IAC.

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

## Namespace

Google \\ Cloud \\ DesignCenter \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ tf_config` | `https://docs.cloud.google.com/php/docs/reference/cloud-designcenter/latest/V1.TerraformConfig` Optional. Configuration on how to handle terraform IaC export. |
| `↳ iac_format` | `int` Optional. IaC format of the export. Default is \[IACFormat.TERRAFORM\]. |

### getTfConfig

Optional. Configuration on how to handle terraform IaC export.

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

### hasTfConfig

### setTfConfig

Optional. Configuration on how to handle terraform IaC export.

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

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

### getIacFormat

Optional. IaC format of the export. Default is \[IACFormat.TERRAFORM\].

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [IACFormat](https://docs.cloud.google.com/php/docs/reference/cloud-designcenter/latest/V1.IACFormat). |

### setIacFormat

Optional. IaC format of the export. Default is \[IACFormat.TERRAFORM\].

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [IACFormat](https://docs.cloud.google.com/php/docs/reference/cloud-designcenter/latest/V1.IACFormat). |

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

### getConfigPayload

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