@Generated(value="https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") public class LLMObsPromptChatMessage extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
JSON_PROPERTY_CONTENT |
static String |
JSON_PROPERTY_ROLE |
boolean |
unparsed |
| Constructor and Description |
|---|
LLMObsPromptChatMessage() |
LLMObsPromptChatMessage(String content,
String role) |
| Modifier and Type | Method and Description |
|---|---|
LLMObsPromptChatMessage |
content(String content) |
boolean |
equals(Object o)
Return true if this LLMObsPromptChatMessage object is equal to o.
|
Map<String,Object> |
getAdditionalProperties()
Return the additional (undeclared) property.
|
Object |
getAdditionalProperty(String key)
Return the additional (undeclared) property with the specified name.
|
String |
getContent()
Content of the message.
|
String |
getRole()
Role of the message (for example
system, user, or assistant
). |
int |
hashCode() |
LLMObsPromptChatMessage |
putAdditionalProperty(String key,
Object value)
Set the additional (undeclared) property with the specified name and value.
|
LLMObsPromptChatMessage |
role(String role) |
void |
setContent(String content) |
void |
setRole(String role) |
String |
toString() |
public boolean unparsed
public static final String JSON_PROPERTY_CONTENT
public static final String JSON_PROPERTY_ROLE
public LLMObsPromptChatMessage content(String content)
public String getContent()
public void setContent(String content)
public LLMObsPromptChatMessage role(String role)
public String getRole()
system, user, or assistant
).public void setRole(String role)
public LLMObsPromptChatMessage putAdditionalProperty(String key, Object value)
key - The arbitrary key to setvalue - The associated valuepublic Map<String,Object> getAdditionalProperties()
public Object getAdditionalProperty(String key)
key - The arbitrary key to getpublic boolean equals(Object o)
Copyright © 2026. All rights reserved.