Class V1LocalVolumeSource

java.lang.Object
io.kubernetes.client.openapi.models.V1LocalVolumeSource

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2025-05-20T20:47:13.890592Z[Etc/UTC]", comments="Generator version: 7.13.0") public class V1LocalVolumeSource extends Object
Local represents directly-attached storage with node affinity
  • Field Details

  • Constructor Details

    • V1LocalVolumeSource

      public V1LocalVolumeSource()
  • Method Details

    • fsType

      public V1LocalVolumeSource fsType(@Nullable String fsType)
    • getFsType

      @Nullable public String getFsType()
      fsType is the filesystem type to mount. It applies only when the Path is a block device. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". The default value is to auto-select a filesystem if unspecified.
      Returns:
      fsType
    • setFsType

      public void setFsType(@Nullable String fsType)
    • path

      public V1LocalVolumeSource path(@Nonnull String path)
    • getPath

      @Nonnull public String getPath()
      path of the full path to the volume on the node. It can be either a directory or block device (disk, partition, ...).
      Returns:
      path
    • setPath

      public void setPath(@Nonnull 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 V1LocalVolumeSource
    • fromJson

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

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