0.14.0 (latest) 0.13.0 0.12.3 0.9.0 0.8.2 0.7.1 0.6.1 0.4.1 0.3.0 0.2.1 0.1.2 Reference documentation and code samples for the Google Cloud Oracle Database V1 Client class Entitlement.

Details of the Entitlement resource.

Generated from protobuf message `google.cloud.oracledatabase.v1.Entitlement`

## Namespace

Google \\ Cloud \\ OracleDatabase \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ name` | `string` Identifier. The name of the Entitlement resource with the format: projects/{project}/locations/{region}/entitlements/{entitlement} |
| `↳ cloud_account_details` | `https://docs.cloud.google.com/php/docs/reference/cloud-oracledatabase/latest/V1.CloudAccountDetails` Details of the OCI Cloud Account. |
| `↳ entitlement_id` | `string` Output only. Google Cloud Marketplace order ID (aka entitlement ID) |
| `↳ state` | `int` Output only. Entitlement State. |

### getName

Identifier. The name of the Entitlement resource with the format:
projects/{project}/locations/{region}/entitlements/{entitlement}

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

### setName

Identifier. The name of the Entitlement resource with the format:
projects/{project}/locations/{region}/entitlements/{entitlement}

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

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

### getCloudAccountDetails

Details of the OCI Cloud Account.

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

### hasCloudAccountDetails

### clearCloudAccountDetails

### setCloudAccountDetails

Details of the OCI Cloud Account.

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

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

### getEntitlementId

Output only. Google Cloud Marketplace order ID (aka entitlement ID)

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

### setEntitlementId

Output only. Google Cloud Marketplace order ID (aka entitlement ID)

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

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

### getState

Output only. Entitlement State.

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

### setState

Output only. Entitlement State.

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

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