Newer Version Available
ApexMap Class
Create, clone, and convert string based key-value pairs to a JSON string
format.
Namespace
ApexMap Constructors
Learn more about the constructors available with the ApexMap class.
The ApexMap class includes these constructors.
ApexMap(key, value)
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.
Signature
public ApexMap(String key, String value)
Parameters
- 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.
ApexMap Properties
These are the properties for ApexMap.
key
Represents key of the key-value pair. This property is used to store the unique ID or
name of the data.
Signature
public String key {get; set;}
1embeddedai.ApexMap, keyProperty Value
Type: String
value
Represents value of the key-value pair. This property is used to store the data
associated with the key.
Signature
public String value {get; set;}
1embeddedai.ApexMap, valueProperty Value
Type: String
ApexMap Methods
Create a copy of the ApexMap object and convert key-value pairs to string
format.
These are the methods for ApexMap.
toString()
Returns a string representation of the ApexMap
object.
Signature
public String toString()
1embeddedai.ApexMap, toString, [], StringReturn Value
Type: String