Class V1DownwardAPIVolumeFile

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

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2025-02-12T21:15:49.397498Z[Etc/UTC]", comments="Generator version: 7.6.0") public class V1DownwardAPIVolumeFile extends Object
DownwardAPIVolumeFile represents information to create the file containing the pod field
  • Field Details

  • Constructor Details

    • V1DownwardAPIVolumeFile

      public V1DownwardAPIVolumeFile()
  • Method Details

    • fieldRef

      public V1DownwardAPIVolumeFile fieldRef(V1ObjectFieldSelector fieldRef)
    • getFieldRef

      @Nullable public V1ObjectFieldSelector getFieldRef()
      Get fieldRef
      Returns:
      fieldRef
    • setFieldRef

      public void setFieldRef(V1ObjectFieldSelector fieldRef)
    • mode

      public V1DownwardAPIVolumeFile mode(Integer mode)
    • getMode

      @Nullable public Integer getMode()
      Optional: mode bits used to set permissions on this file, must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. If not specified, the volume defaultMode will be used. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.
      Returns:
      mode
    • setMode

      public void setMode(Integer mode)
    • path

      public V1DownwardAPIVolumeFile path(String path)
    • getPath

      @Nonnull public String getPath()
      Required: Path is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..'
      Returns:
      path
    • setPath

      public void setPath(String path)
    • resourceFieldRef

      public V1DownwardAPIVolumeFile resourceFieldRef(V1ResourceFieldSelector resourceFieldRef)
    • getResourceFieldRef

      @Nullable public V1ResourceFieldSelector getResourceFieldRef()
      Get resourceFieldRef
      Returns:
      resourceFieldRef
    • setResourceFieldRef

      public void setResourceFieldRef(V1ResourceFieldSelector resourceFieldRef)
    • 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 V1DownwardAPIVolumeFile
    • fromJson

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

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