1. Types
2. vapi
3. metadata
4. metamodel

## vapi metadata metamodel: element value

The `element_value` structure describes the value of the metadata element.

### Representations:

- JSON
- XML

{
"list_value": [
"string",
"string"
],
"long_value": 1,
"string_value": "string",
"structure_id": "obj-103",
"structure_ids": [
"obj-103",
"obj-103"
],
"type": "LONG"
}
<?xml version="1.0" ?>
<ns0:ElementValue xmlns:ns0="http://vmware.com/vapi/metadata/metamodel" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<long_value>1</long_value>
<list_value-array>
<array-item>string</array-item>
<array-item>string</array-item>
</list_value-array>
<structure_id>obj-103</structure_id>
<structure_ids-array>
<array-item>obj-103</array-item>
<array-item>obj-103</array-item>
</structure_ids-array>
<string_value>string</string_value>
<type>LONG</type>
</ns0:ElementValue>

#### Attributes:

Name | Type | Description
--- | --- | ---
Required
type | string | Type of the value. Defines the valid types for values in metadata elements. Value is one of: LONG: Indicates the type of the value is a long (64 bit signed integer). STRING: Indicates the type of the value is a string (a variable length sequence of characters). The encoding is UTF-8. STRING_LIST: Indicates the type of the value is a list of strings. STRUCTURE_REFERENCE: Indicates the type of the value is an identifier for a structure element. STRUCTURE_REFERENCE_LIST: Indicates the type of the value is a list of identifiers for a structure element.
Optional
long_value | long | Long value of the metadata element. Optional. It is only relevant when type has value LONG. This field is optional and it is only relevant when the value of `type` is LONG.
string_value | string | String value of the metadata element. Optional. It is only relevant when type has value STRING. This field is optional and it is only relevant when the value of `type` is STRING.
list_value | string[] | List of strings value of the metadata element. Optional. It is only relevant when type has value STRING_LIST. This field is optional and it is only relevant when the value of `type` is STRING_LIST.
structure_id | string | Identifier of the structure element. Optional. It is only relevant when type has value STRUCTURE_REFERENCE. This field is optional and it is only relevant when the value of `type` is STRUCTURE_REFERENCE.When clients pass a value of this structure as a parameter, the field must be an identifier for the resource type: `com.vmware.vapi.structure`. When operations return a value of this structure as a result, the field will be an identifier for the resource type: `com.vmware.vapi.structure`.
structure_ids | string[] | List of identifiers of the structure elements. Optional. It is only relevant when type has value STRUCTURE_REFERENCE_LIST. This field is optional and it is only relevant when the value of `type` is STRUCTURE_REFERENCE_LIST.When clients pass a value of this structure as a parameter, the field must contain identifiers for the resource type: `com.vmware.vapi.structure`. When operations return a value of this structure as a result, the field will contain identifiers for the resource type: `com.vmware.vapi.structure`.