Class FilesystemChange

java.lang.Object
io.github.alersrt.pod4j.openapi.model.FilesystemChange

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2024-11-19T11:19:05.435500352+07:00[Asia/Barnaul]", comments="Generator version: 7.7.0") public class FilesystemChange extends Object
FilesystemChange
  • Field Details

  • Constructor Details

    • FilesystemChange

      public FilesystemChange()
  • Method Details

    • kind

      public FilesystemChange kind(Integer kind)
    • getKind

      @Nonnull public Integer getKind()
      Can be one of: `0`: Modified (\"C\") `1`: Added (\"A\") `2`: Deleted (\"D\")
      Returns:
      kind
    • setKind

      public void setKind(Integer kind)
    • path

      public FilesystemChange path(String path)
    • getPath

      @Nonnull public String getPath()
      Path to file or directory that has changed.
      Returns:
      path
    • setPath

      public void setPath(String path)
    • 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 FilesystemChange
    • fromJson

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

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