# Google Cloud Policy Simulator V1 Client - Class CustomConstraintOverlay (1.3.4)

1.3.4 (latest) 1.3.3 1.2.0 1.1.1 1.0.3 0.2.5 0.1.1 Reference documentation and code samples for the Google Cloud Policy Simulator V1 Client class CustomConstraintOverlay.

A change to an OrgPolicy custom constraint.

Generated from protobuf message `google.cloud.policysimulator.v1.OrgPolicyOverlay.CustomConstraintOverlay`

## Namespace

Google \\ Cloud \\ PolicySimulator \\ V1 \\ OrgPolicyOverlay

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ custom_constraint_parent` | `string` Optional. Resource the constraint is attached to. Example: "organization/987654" |
| `↳ custom_constraint` | `https://docs.cloud.google.com/php/docs/reference/cloud-org-policy/latest/V2.CustomConstraint.html` Optional. The new or updated custom constraint. |

### getCustomConstraintParent

Optional. Resource the constraint is attached to.

Example: "organization/987654"

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

### setCustomConstraintParent

Optional. Resource the constraint is attached to.

Example: "organization/987654"

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

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

### getCustomConstraint

Optional. The new or updated custom constraint.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-org-policy/latest/V2.CustomConstraint.html|null` |   |

### hasCustomConstraint

### clearCustomConstraint

### setCustomConstraint

Optional. The new or updated custom constraint.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-org-policy/latest/V2.CustomConstraint.html` |

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