# Google Cloud Certificate Manager V1 Client - Class AuthorizationAttemptInfo (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 AuthorizationAttemptInfo.

State of the latest attempt to authorize a domain for certificate
issuance.

Generated from protobuf message `google.cloud.certificatemanager.v1.Certificate.ManagedCertificate.AuthorizationAttemptInfo`

## Namespace

Google \\ Cloud \\ CertificateManager \\ V1 \\ Certificate \\ ManagedCertificate

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ domain` | `string` Domain name of the authorization attempt. |
| `↳ state` | `int` Output only. State of the domain for managed certificate issuance. |
| `↳ failure_reason` | `int` Output only. Reason for failure of the authorization attempt for the domain. |
| `↳ details` | `string` Output only. Human readable explanation for reaching the state. Provided to help address the configuration issues. Not guaranteed to be stable. For programmatic access use FailureReason enum. |

### getDomain

Domain name of the authorization attempt.

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

### setDomain

Domain name of the authorization attempt.

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

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

### getState

Output only. State of the domain for managed certificate issuance.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [State](https://docs.cloud.google.com/php/docs/reference/cloud-certificate-manager/latest/V1.Certificate.ManagedCertificate.AuthorizationAttemptInfo.State). |

### setState

Output only. State of the domain for managed certificate issuance.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [State](https://docs.cloud.google.com/php/docs/reference/cloud-certificate-manager/latest/V1.Certificate.ManagedCertificate.AuthorizationAttemptInfo.State). |

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

### getFailureReason

Output only. Reason for failure of the authorization attempt for the
domain.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [FailureReason](https://docs.cloud.google.com/php/docs/reference/cloud-certificate-manager/latest/V1.Certificate.ManagedCertificate.AuthorizationAttemptInfo.FailureReason). |

### setFailureReason

Output only. Reason for failure of the authorization attempt for the
domain.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [FailureReason](https://docs.cloud.google.com/php/docs/reference/cloud-certificate-manager/latest/V1.Certificate.ManagedCertificate.AuthorizationAttemptInfo.FailureReason). |

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

### getDetails

Output only. Human readable explanation for reaching the state.

Provided to help address the configuration issues. Not guaranteed to be
stable. For programmatic access use FailureReason enum.

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

### setDetails

Output only. Human readable explanation for reaching the state.

Provided to help address the configuration issues. Not guaranteed to be
stable. For programmatic access use FailureReason enum.

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

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