# Google Cloud Access Approval V1 Client - Class ApproveDecision (2.1.3)

2.1.3 (latest) 2.1.2 2.0.5 1.2.5 1.1.3 1.0.4 Reference documentation and code samples for the Google Cloud Access Approval V1 Client class ApproveDecision.

A decision that has been made to approve access to a resource.

Generated from protobuf message `google.cloud.accessapproval.v1.ApproveDecision`

## Namespace

Google \\ Cloud \\ AccessApproval \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ approve_time` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` The time at which approval was granted. |
| `↳ expire_time` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` The time at which the approval expires. |
| `↳ invalidate_time` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` If set, denotes the timestamp at which the approval is invalidated. |
| `↳ signature_info` | `https://docs.cloud.google.com/php/docs/reference/cloud-access-approval/latest/V1.SignatureInfo` The signature for the ApprovalRequest and details on how it was signed. |
| `↳ auto_approved` | `bool` True when the request has been auto-approved. |

### getApproveTime

The time at which approval was granted.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp|null` |   |

### hasApproveTime

### clearApproveTime

### setApproveTime

The time at which approval was granted.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` |

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

### getExpireTime

The time at which the approval expires.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp|null` |   |

### hasExpireTime

### clearExpireTime

### setExpireTime

The time at which the approval expires.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` |

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

### getInvalidateTime

If set, denotes the timestamp at which the approval is invalidated.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp|null` |   |

### hasInvalidateTime

### clearInvalidateTime

### setInvalidateTime

If set, denotes the timestamp at which the approval is invalidated.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` |

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

### getSignatureInfo

The signature for the ApprovalRequest and details on how it was signed.

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

### hasSignatureInfo

### clearSignatureInfo

### setSignatureInfo

The signature for the ApprovalRequest and details on how it was signed.

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

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

### getAutoApproved

True when the request has been auto-approved.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### setAutoApproved

True when the request has been auto-approved.

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

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