Class ArchiveContentEntry

java.lang.Object
ai.reveng.model.ArchiveContentEntry

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

  • Constructor Details

    • ArchiveContentEntry

      public ArchiveContentEntry()
  • Method Details

    • encrypted

      public ArchiveContentEntry encrypted(@Nonnull Boolean encrypted)
    • getEncrypted

      @Nonnull public Boolean getEncrypted()
      Whether this entry is password-protected
      Returns:
      encrypted
    • setEncrypted

      public void setEncrypted(@Nonnull Boolean encrypted)
    • path

      public ArchiveContentEntry path(@Nonnull String path)
    • getPath

      @Nonnull public String getPath()
      Path relative to the archive root
      Returns:
      path
    • setPath

      public void setPath(@Nonnull String path)
    • size

      public ArchiveContentEntry size(@Nonnull Long size)
    • getSize

      @Nonnull public Long getSize()
      Uncompressed size in bytes
      Returns:
      size
    • setSize

      public void setSize(@Nonnull Long size)
    • putAdditionalProperty

      public ArchiveContentEntry putAdditionalProperty(String key, Object value)
      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 property
      value - value of the property
      Returns:
      the ArchiveContentEntry instance itself
    • getAdditionalProperties

      public Map<String,Object> getAdditionalProperties()
      Return the additional (undeclared) property.
      Returns:
      a map of objects
    • getAdditionalProperty

      public Object getAdditionalProperty(String key)
      Return the additional (undeclared) property with the specified name.
      Parameters:
      key - name of the property
      Returns:
      an object
    • 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 ArchiveContentEntry
    • fromJson

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

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