# Google Cloud Asset V1 Client - Class Access (2.3.3)

2.3.3 (latest) 2.3.2 2.2.3 2.1.3 2.0.1 1.16.4 1.14.1 1.13.2 1.12.2 1.11.3 1.10.2 1.9.2 Reference documentation and code samples for the Google Cloud Asset V1 Client class Access.

An IAM role or permission under analysis.

Generated from protobuf message `google.cloud.asset.v1.IamPolicyAnalysisResult.Access`

## Namespace

Google \\ Cloud \\ Asset \\ V1 \\ IamPolicyAnalysisResult

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ role` | `string` The role. |
| `↳ permission` | `string` The permission. |
| `↳ analysis_state` | `https://docs.cloud.google.com/php/docs/reference/cloud-asset/latest/V1.IamPolicyAnalysisState` The analysis state of this access. |

### getRole

The role.

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

### hasRole

### setRole

The role.

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

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

### getPermission

The permission.

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

### hasPermission

### setPermission

The permission.

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

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

### getAnalysisState

The analysis state of this access.

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

### hasAnalysisState

### clearAnalysisState

### setAnalysisState

The analysis state of this access.

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

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

### getOneofAccess

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