Class PcapBodyInfo

java.lang.Object
ai.reveng.model.PcapBodyInfo

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

  • Constructor Details

    • PcapBodyInfo

      public PcapBodyInfo()
  • Method Details

    • filename

      public PcapBodyInfo filename(@Nullable String filename)
    • getFilename

      @Nullable public String getFilename()
      Get filename
      Returns:
      filename
    • setFilename

      public void setFilename(@Nullable String filename)
    • isPe

      public PcapBodyInfo isPe(@Nonnull Boolean isPe)
    • getIsPe

      @Nonnull public Boolean getIsPe()
      Get isPe
      Returns:
      isPe
    • setIsPe

      public void setIsPe(@Nonnull Boolean isPe)
    • mimeType

      public PcapBodyInfo mimeType(@Nullable String mimeType)
    • getMimeType

      @Nullable public String getMimeType()
      Get mimeType
      Returns:
      mimeType
    • setMimeType

      public void setMimeType(@Nullable String mimeType)
    • preview

      public PcapBodyInfo preview(@Nullable String preview)
    • getPreview

      @Nullable public String getPreview()
      Get preview
      Returns:
      preview
    • setPreview

      public void setPreview(@Nullable String preview)
    • sha256

      public PcapBodyInfo sha256(@Nullable String sha256)
    • getSha256

      @Nullable public String getSha256()
      Get sha256
      Returns:
      sha256
    • setSha256

      public void setSha256(@Nullable String sha256)
    • size

      public PcapBodyInfo size(@Nonnull Long size)
    • getSize

      @Nonnull public Long getSize()
      Get size
      Returns:
      size
    • setSize

      public void setSize(@Nonnull Long size)
    • yaraHits

      public PcapBodyInfo yaraHits(@Nullable List<String> yaraHits)
    • addYaraHitsItem

      public PcapBodyInfo addYaraHitsItem(String yaraHitsItem)
    • getYaraHits

      @Nullable public List<String> getYaraHits()
      Get yaraHits
      Returns:
      yaraHits
    • setYaraHits

      public void setYaraHits(@Nullable List<String> yaraHits)
    • 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 PcapBodyInfo
    • fromJson

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

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