Class V1HostPathVolumeSource

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

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2024-02-02T17:56:12.287571Z[Etc/UTC]") public class V1HostPathVolumeSource extends Object
Represents a host path mapped into a pod. Host path volumes do not support ownership management or SELinux relabeling.
  • Field Details

  • Constructor Details

    • V1HostPathVolumeSource

      public V1HostPathVolumeSource()
  • Method Details

    • path

      public V1HostPathVolumeSource path(String path)
    • getPath

      @Nonnull public String getPath()
      path of the directory on the host. If the path is a symlink, it will follow the link to the real path. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath
      Returns:
      path
    • setPath

      public void setPath(String path)
    • type

      public V1HostPathVolumeSource type(String type)
    • getType

      @Nullable public String getType()
      type for HostPath Volume Defaults to \"\" More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath
      Returns:
      type
    • setType

      public void setType(String type)
    • 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
    • validateJsonObject

      public static void validateJsonObject(com.google.gson.JsonObject jsonObj) throws IOException
      Validates the JSON Object and throws an exception if issues found
      Parameters:
      jsonObj - JSON Object
      Throws:
      IOException - if the JSON Object is invalid with respect to V1HostPathVolumeSource
    • fromJson

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

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