Class ServerSentEventsInner1

java.lang.Object
ai.reveng.model.AbstractOpenApiSchema
ai.reveng.model.ServerSentEventsInner1

@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public class ServerSentEventsInner1 extends AbstractOpenApiSchema
  • Field Details

  • Constructor Details

    • ServerSentEventsInner1

      public ServerSentEventsInner1()
    • ServerSentEventsInner1

      public ServerSentEventsInner1(Object o)
  • Method Details

    • getSchemas

      public Map<String,Class<?>> getSchemas()
      Description copied from class: AbstractOpenApiSchema
      Get the list of oneOf/anyOf composed schemas allowed to be stored in this object
      Specified by:
      getSchemas in class AbstractOpenApiSchema
      Returns:
      an instance of the actual schema/object
    • setActualInstance

      public void setActualInstance(Object instance)
      Set the instance that matches the oneOf child schema, check the instance parameter is valid against the oneOf child schemas: EventAttemptFailed, EventAttemptStarted, EventDecompFailed, EventDecompFinished, EventProse, EventRenameApplied, EventSourceDelta, EventSourceReset, EventWarning It could be an instance of the 'oneOf' schemas.
      Overrides:
      setActualInstance in class AbstractOpenApiSchema
      Parameters:
      instance - the actual instance of the schema/object
    • getActualInstance

      public Object getActualInstance()
      Get the actual instance, which can be the following: EventAttemptFailed, EventAttemptStarted, EventDecompFailed, EventDecompFinished, EventProse, EventRenameApplied, EventSourceDelta, EventSourceReset, EventWarning
      Overrides:
      getActualInstance in class AbstractOpenApiSchema
      Returns:
      The actual instance (EventAttemptFailed, EventAttemptStarted, EventDecompFailed, EventDecompFinished, EventProse, EventRenameApplied, EventSourceDelta, EventSourceReset, EventWarning)
    • getEventAttemptFailed

      public EventAttemptFailed getEventAttemptFailed() throws ClassCastException
      Get the actual instance of `EventAttemptFailed`. If the actual instance is not `EventAttemptFailed`, the ClassCastException will be thrown.
      Returns:
      The actual instance of `EventAttemptFailed`
      Throws:
      ClassCastException - if the instance is not `EventAttemptFailed`
    • getEventAttemptStarted

      public EventAttemptStarted getEventAttemptStarted() throws ClassCastException
      Get the actual instance of `EventAttemptStarted`. If the actual instance is not `EventAttemptStarted`, the ClassCastException will be thrown.
      Returns:
      The actual instance of `EventAttemptStarted`
      Throws:
      ClassCastException - if the instance is not `EventAttemptStarted`
    • getEventDecompFailed

      public EventDecompFailed getEventDecompFailed() throws ClassCastException
      Get the actual instance of `EventDecompFailed`. If the actual instance is not `EventDecompFailed`, the ClassCastException will be thrown.
      Returns:
      The actual instance of `EventDecompFailed`
      Throws:
      ClassCastException - if the instance is not `EventDecompFailed`
    • getEventDecompFinished

      public EventDecompFinished getEventDecompFinished() throws ClassCastException
      Get the actual instance of `EventDecompFinished`. If the actual instance is not `EventDecompFinished`, the ClassCastException will be thrown.
      Returns:
      The actual instance of `EventDecompFinished`
      Throws:
      ClassCastException - if the instance is not `EventDecompFinished`
    • getEventProse

      public EventProse getEventProse() throws ClassCastException
      Get the actual instance of `EventProse`. If the actual instance is not `EventProse`, the ClassCastException will be thrown.
      Returns:
      The actual instance of `EventProse`
      Throws:
      ClassCastException - if the instance is not `EventProse`
    • getEventRenameApplied

      public EventRenameApplied getEventRenameApplied() throws ClassCastException
      Get the actual instance of `EventRenameApplied`. If the actual instance is not `EventRenameApplied`, the ClassCastException will be thrown.
      Returns:
      The actual instance of `EventRenameApplied`
      Throws:
      ClassCastException - if the instance is not `EventRenameApplied`
    • getEventSourceDelta

      public EventSourceDelta getEventSourceDelta() throws ClassCastException
      Get the actual instance of `EventSourceDelta`. If the actual instance is not `EventSourceDelta`, the ClassCastException will be thrown.
      Returns:
      The actual instance of `EventSourceDelta`
      Throws:
      ClassCastException - if the instance is not `EventSourceDelta`
    • getEventSourceReset

      public EventSourceReset getEventSourceReset() throws ClassCastException
      Get the actual instance of `EventSourceReset`. If the actual instance is not `EventSourceReset`, the ClassCastException will be thrown.
      Returns:
      The actual instance of `EventSourceReset`
      Throws:
      ClassCastException - if the instance is not `EventSourceReset`
    • getEventWarning

      public EventWarning getEventWarning() throws ClassCastException
      Get the actual instance of `EventWarning`. If the actual instance is not `EventWarning`, the ClassCastException will be thrown.
      Returns:
      The actual instance of `EventWarning`
      Throws:
      ClassCastException - if the instance is not `EventWarning`
    • validateJsonElement

      public static void validateJsonElement(com.google.gson.JsonElement jsonElement) throws IOException
      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 ServerSentEventsInner1
    • fromJson

      public static ServerSentEventsInner1 fromJson(String jsonString) throws IOException
      Create an instance of ServerSentEventsInner1 given an JSON string
      Parameters:
      jsonString - JSON string
      Returns:
      An instance of ServerSentEventsInner1
      Throws:
      IOException - if the JSON string is invalid with respect to ServerSentEventsInner1
    • toJson

      public String toJson()
      Convert an instance of ServerSentEventsInner1 to an JSON string
      Returns:
      JSON string