# Google Cloud Certificate Manager V1 Client - Class DnsResourceRecord (1.1.2)

1.1.2 (latest) 1.1.1 1.0.4 0.7.3 0.6.0 0.5.2 0.4.2 0.3.7 Reference documentation and code samples for the Google Cloud Certificate Manager V1 Client class DnsResourceRecord.

The structure describing the DNS Resource Record that needs to be added
to DNS configuration for the authorization to be usable by
certificate.

Generated from protobuf message `google.cloud.certificatemanager.v1.DnsAuthorization.DnsResourceRecord`

## Namespace

Google \\ Cloud \\ CertificateManager \\ V1 \\ DnsAuthorization

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ name` | `string` Output only. Fully qualified name of the DNS Resource Record. e.g. `_acme-challenge.example.com` |
| `↳ type` | `string` Output only. Type of the DNS Resource Record. Currently always set to "CNAME". |
| `↳ data` | `string` Output only. Data of the DNS Resource Record. |

### getName

Output only. Fully qualified name of the DNS Resource Record.

e.g. `_acme-challenge.example.com`

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

### setName

Output only. Fully qualified name of the DNS Resource Record.

e.g. `_acme-challenge.example.com`

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

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

### getType

Output only. Type of the DNS Resource Record.

Currently always set to "CNAME".

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

### setType

Output only. Type of the DNS Resource Record.

Currently always set to "CNAME".

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

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

### getData

Output only. Data of the DNS Resource Record.

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

### setData

Output only. Data of the DNS Resource Record.

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

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