# Google Cloud Security Command Center V2 Client - Class ValuedResource (2.5.1)

2.5.1 (latest) 2.5.0 2.4.2 2.3.0 2.2.1 2.1.1 2.0.4 1.32.0 1.31.0 1.30.0 1.29.0 1.28.2 1.21.0 1.20.2 1.19.1 1.18.0 1.17.0 1.16.0 1.15.1 1.14.2 1.13.1 Reference documentation and code samples for the Google Cloud Security Command Center V2 Client class ValuedResource.

A resource that is determined to have value to a user's system

Generated from protobuf message `google.cloud.securitycenter.v2.ValuedResource`

## Namespace

Google \\ Cloud \\ SecurityCenter \\ V2

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ name` | `string` Valued resource name, for example, e.g.: `organizations/123/simulations/456/valuedResources/789` |
| `↳ resource` | `string` The [full resource name](https://cloud.google.com/apis/design/resource_names#full_resource_name) of the valued resource. |
| `↳ resource_type` | `string` The [resource type](https://cloud.google.com/asset-inventory/docs/supported-asset-types) of the valued resource. |
| `↳ display_name` | `string` Human-readable name of the valued resource. |
| `↳ resource_value` | `int` How valuable this resource is. |
| `↳ exposed_score` | `float` Exposed score for this valued resource. A value of 0 means no exposure was detected exposure. |
| `↳ resource_value_configs_used` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-security-center/latest/V2.ResourceValueConfigMetadata>` List of resource value configurations' metadata used to determine the value of this resource. Maximum of 100. |

### getName

Valued resource name, for example,
e.g.:
`organizations/123/simulations/456/valuedResources/789`

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

### setName

Valued resource name, for example,
e.g.:
`organizations/123/simulations/456/valuedResources/789`

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

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

### getResource

The
[full resource
name](https://cloud.google.com/apis/design/resource_names#full_resource_name)
of the valued resource.

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

### setResource

The
[full resource
name](https://cloud.google.com/apis/design/resource_names#full_resource_name)
of the valued resource.

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

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

### getResourceType

The [resource
type](https://cloud.google.com/asset-inventory/docs/supported-asset-types)
of the valued resource.

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

### setResourceType

The [resource
type](https://cloud.google.com/asset-inventory/docs/supported-asset-types)
of the valued resource.

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

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

### getDisplayName

Human-readable name of the valued resource.

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

### setDisplayName

Human-readable name of the valued resource.

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

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

### getResourceValue

How valuable this resource is.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [ResourceValue](https://docs.cloud.google.com/php/docs/reference/cloud-security-center/latest/V2.ValuedResource.ResourceValue). |

### setResourceValue

How valuable this resource is.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [ResourceValue](https://docs.cloud.google.com/php/docs/reference/cloud-security-center/latest/V2.ValuedResource.ResourceValue). |

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

### getExposedScore

Exposed score for this valued resource. A value of 0 means no exposure was
detected exposure.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `float` |   |

### setExposedScore

Exposed score for this valued resource. A value of 0 means no exposure was
detected exposure.

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

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

### getResourceValueConfigsUsed

List of resource value configurations' metadata used to determine the value
of this resource. Maximum of 100.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<https://docs.cloud.google.com/php/docs/reference/cloud-security-center/latest/V2.ResourceValueConfigMetadata>` |   |

### setResourceValueConfigsUsed

List of resource value configurations' metadata used to determine the value
of this resource. Maximum of 100.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-security-center/latest/V2.ResourceValueConfigMetadata>` |

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