Life Sciences Cloud Developer Guide
StandardValueSet Names and Standard Picklist Fields
ApexMap Class
RecordApexRepresentation Class
API End-of-Life Policy
Previous Versions
Create, clone, and convert string based key-value pairs to a JSON string format.
Learn more about the constructors available with the ApexMap class.
Create a copy of the ApexMap object and convert key-value pairs to string format.
Learn more about the constructors available with the ApexMap class.
The ApexMap class includes these constructors.
Initializes a new instance of the ApexMap class by assigning the specified key and value. This constructor creates a single key–value entry that can be included in an embedded AI Apex map for passing contextual data to embedded AI logic.
Initializes the ApexMap class.
Initializes a new instance of the ApexMap class by assigning the specified key and value. This constructor creates a single key–value entry that can be included in an embedded AI Apex map for passing contextual data to embedded AI logic.
public ApexMap(String key, String value)
key:
Type: String
The unique identifier for an entry in the embedded AI Apex map. This key references and retrieves the associated value during embedded AI processing.
value:
Type: String
The data associated with the specified key in the embedded AI Apex map. This value stores the contextual information consumed by embedded AI logic.
Initializes the ApexMap class.
public ApexMap()
These are the properties for ApexMap.
Represents key of the key-value pair. This property is used to store the unique ID or name of the data.
Represents value of the key-value pair. This property is used to store the data associated with the key.
Represents key of the key-value pair. This property is used to store the unique ID or name of the data.
public String key {get; set;}
Type: String
Represents value of the key-value pair. This property is used to store the data associated with the key.
public String value {get; set;}
Type: String
Create a copy of the ApexMap object and convert key-value pairs to string format.
These are the methods for ApexMap.
Returns a string representation of the ApexMap object.
Returns a string representation of the ApexMap object.
public String toString()
Type: String