Package ai.reveng.model
Class EventSourceDelta
java.lang.Object
ai.reveng.model.EventSourceDelta
@Generated("org.openapitools.codegen.languages.JavaClientCodegen")
public class EventSourceDelta
extends Object
EventSourceDelta
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic enumThe event name. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondata(SourceDeltaEvent data) booleanevent(EventSourceDelta.EventEnum event) static EventSourceDeltaCreate an instance of EventSourceDelta given an JSON stringReturn the additional (undeclared) property.Return the additional (undeclared) property with the specified name.getData()Get datagetEvent()The event name.getId()The event ID.getRetry()The retry time in milliseconds.inthashCode()putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.voidsetData(SourceDeltaEvent data) voidvoidvoidtoJson()Convert an instance of EventSourceDelta to an JSON stringtoString()static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement) Validates the JSON Element and throws an exception if issues found
-
Field Details
-
SERIALIZED_NAME_DATA
- See Also:
-
SERIALIZED_NAME_EVENT
- See Also:
-
SERIALIZED_NAME_ID
- See Also:
-
SERIALIZED_NAME_RETRY
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
EventSourceDelta
public EventSourceDelta()
-
-
Method Details
-
data
-
getData
Get data- Returns:
- data
-
setData
-
event
-
getEvent
The event name.- Returns:
- event
-
setEvent
-
id
-
getId
The event ID.- Returns:
- id
-
setId
-
retry
-
getRetry
The retry time in milliseconds.- Returns:
- retry
-
setRetry
-
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 EventSourceDelta 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 EventSourceDelta
-
fromJson
Create an instance of EventSourceDelta given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of EventSourceDelta
- Throws:
IOException- if the JSON string is invalid with respect to EventSourceDelta
-
toJson
Convert an instance of EventSourceDelta to an JSON string- Returns:
- JSON string
-