Class ExternalResponse

java.lang.Object
ai.reveng.model.ExternalResponse

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

  • Constructor Details

    • ExternalResponse

      public ExternalResponse()
  • Method Details

    • sha256Hash

      public ExternalResponse sha256Hash(@Nonnull String sha256Hash)
    • getSha256Hash

      @Nonnull public String getSha256Hash()
      Get sha256Hash
      Returns:
      sha256Hash
    • setSha256Hash

      public void setSha256Hash(@Nonnull String sha256Hash)
    • data

      public ExternalResponse data(@Nonnull Map<String,Object> data)
    • putDataItem

      public ExternalResponse putDataItem(String key, Object dataItem)
    • getData

      @Nonnull public Map<String,Object> getData()
      Get data
      Returns:
      data
    • setData

      public void setData(@Nonnull Map<String,Object> data)
    • lastUpdated

      public ExternalResponse lastUpdated(@Nonnull OffsetDateTime lastUpdated)
    • getLastUpdated

      @Nonnull public OffsetDateTime getLastUpdated()
      Get lastUpdated
      Returns:
      lastUpdated
    • setLastUpdated

      public void setLastUpdated(@Nonnull OffsetDateTime lastUpdated)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • 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 ExternalResponse
    • fromJson

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

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