# Google Cloud Secure Source Manager V1 Client - Class Instance (1.8.0)

1.8.0 (latest) 1.7.0 1.6.3 1.5.0 1.4.1 1.3.3 1.2.0 1.1.0 1.0.0 0.2.5 0.1.0 Reference documentation and code samples for the Google Cloud Secure Source Manager V1 Client class Instance.

A resource that represents a Secure Source Manager instance.

Generated from protobuf message `google.cloud.securesourcemanager.v1.Instance`

## Namespace

Google \\ Cloud \\ SecureSourceManager \\ V1

## Methods

### __construct

Constructor.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `data` | `mixed` |

### getName

Identifier. A unique identifier for an instance. The name should be of the
format:
`projects/{project_number}/locations/{location_id}/instances/{instance_id}`
`project_number`: Maps to a unique int64 id assigned to each project.

`location_id`: Refers to the region where the instance will be deployed.
Since Secure Source Manager is a regional service, it must be one of the
valid GCP regions.
`instance_id`: User provided name for the instance, must be unique for a
project_number and location_id combination.

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

### setName

Identifier. A unique identifier for an instance. The name should be of the
format:
`projects/{project_number}/locations/{location_id}/instances/{instance_id}`
`project_number`: Maps to a unique int64 id assigned to each project.

`location_id`: Refers to the region where the instance will be deployed.
Since Secure Source Manager is a regional service, it must be one of the
valid GCP regions.
`instance_id`: User provided name for the instance, must be unique for a
project_number and location_id combination.

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

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

### getCreateTime

Output only. Create timestamp.

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

### hasCreateTime

### clearCreateTime

### setCreateTime

Output only. Create timestamp.

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

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

### getUpdateTime

Output only. Update timestamp.

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

### hasUpdateTime

### clearUpdateTime

### setUpdateTime

Output only. Update timestamp.

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

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

### getLabels

Optional. Labels as key value pairs.

Keys and values can contain only lowercase letters, numeric characters,
underscores, and dashes.
For more information, see [Requirements for
labels](https://cloud.google.com/resource-manager/docs/best-practices-labels#label_encoding).

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

### setLabels

Optional. Labels as key value pairs.

Keys and values can contain only lowercase letters, numeric characters,
underscores, and dashes.
For more information, see [Requirements for
labels](https://cloud.google.com/resource-manager/docs/best-practices-labels#label_encoding).

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

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

### getPrivateConfig

Optional. Private settings for private instance.

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

### hasPrivateConfig

### clearPrivateConfig

### setPrivateConfig

Optional. Private settings for private instance.

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

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

### getState

Output only. Current state of the instance.

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

### setState

Output only. Current state of the instance.

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

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

### getStateNote

Output only. An optional field providing information about the current
instance state.

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

### setStateNote

Output only. An optional field providing information about the current
instance state.

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

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

### getKmsKey

Optional. Immutable. Customer-managed encryption key name, in the format
projects/*/locations/* /keyRings/*/cryptoKeys/*.

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

### setKmsKey

Optional. Immutable. Customer-managed encryption key name, in the format
projects/*/locations/* /keyRings/*/cryptoKeys/*.

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

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

### getHostConfig

Output only. A list of hostnames for this instance.

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

### hasHostConfig

### clearHostConfig

### setHostConfig

Output only. A list of hostnames for this instance.

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

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

### getWorkforceIdentityFederationConfig

Optional. Configuration for Workforce Identity Federation to support
third party identity provider. If unset, defaults to the Google OIDC IdP.

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

### hasWorkforceIdentityFederationConfig

### clearWorkforceIdentityFederationConfig

### setWorkforceIdentityFederationConfig

Optional. Configuration for Workforce Identity Federation to support
third party identity provider. If unset, defaults to the Google OIDC IdP.

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

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