Package ai.reveng.model
Class Event
java.lang.Object
ai.reveng.model.Event
@Generated("org.openapitools.codegen.languages.JavaClientCodegen")
public class Event
extends Object
Event
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionconversationUuid(String conversationUuid) createdAt(OffsetDateTime createdAt) booleanstatic EventCreate an instance of Event given an JSON stringReturn the additional (undeclared) property.Return the additional (undeclared) property with the specified name.Get conversationUuidGet createdAtgetData()Get dataGet eventIdgetRole()Get roleGet tokensUsedgetType()Get typeinthashCode()putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.voidsetConversationUuid(String conversationUuid) voidsetCreatedAt(OffsetDateTime createdAt) voidvoidsetEventId(Long eventId) voidvoidsetTokensUsed(Long tokensUsed) voidtoJson()Convert an instance of Event to an JSON stringtokensUsed(Long tokensUsed) toString()static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement) Validates the JSON Element and throws an exception if issues found
-
Field Details
-
SERIALIZED_NAME_CONVERSATION_UUID
- See Also:
-
SERIALIZED_NAME_CREATED_AT
- See Also:
-
SERIALIZED_NAME_DATA
- See Also:
-
SERIALIZED_NAME_EVENT_ID
- See Also:
-
SERIALIZED_NAME_ROLE
- See Also:
-
SERIALIZED_NAME_TOKENS_USED
- See Also:
-
SERIALIZED_NAME_TYPE
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
Event
public Event()
-
-
Method Details
-
conversationUuid
-
getConversationUuid
Get conversationUuid- Returns:
- conversationUuid
-
setConversationUuid
-
createdAt
-
getCreatedAt
Get createdAt- Returns:
- createdAt
-
setCreatedAt
-
data
-
getData
Get data- Returns:
- data
-
setData
-
eventId
-
getEventId
Get eventId- Returns:
- eventId
-
setEventId
-
role
-
getRole
Get role- Returns:
- role
-
setRole
-
tokensUsed
-
getTokensUsed
Get tokensUsed- Returns:
- tokensUsed
-
setTokensUsed
-
type
-
getType
Get type- Returns:
- type
-
setType
-
putAdditionalProperty
Set the additional (undeclared) property with the specified name and value. If the property does not already exist, create it otherwise replace it.- Parameters:
key- name of the propertyvalue- value of the property- Returns:
- the Event instance itself
-
getAdditionalProperties
Return the additional (undeclared) property.- Returns:
- a map of objects
-
getAdditionalProperty
Return the additional (undeclared) property with the specified name.- Parameters:
key- name of the property- Returns:
- an object
-
equals
-
hashCode
public int hashCode() -
toString
-
validateJsonElement
Validates the JSON Element and throws an exception if issues found- Parameters:
jsonElement- JSON Element- Throws:
IOException- if the JSON Element is invalid with respect to Event
-
fromJson
Create an instance of Event given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of Event
- Throws:
IOException- if the JSON string is invalid with respect to Event
-
toJson
Convert an instance of Event to an JSON string- Returns:
- JSON string
-