Class V1PersistentVolumeStatus

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

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2024-04-23T13:45:09.091597Z[Etc/UTC]") public class V1PersistentVolumeStatus extends Object
PersistentVolumeStatus is the current status of a persistent volume.
  • Field Details

  • Constructor Details

    • V1PersistentVolumeStatus

      public V1PersistentVolumeStatus()
  • Method Details

    • lastPhaseTransitionTime

      public V1PersistentVolumeStatus lastPhaseTransitionTime(OffsetDateTime lastPhaseTransitionTime)
    • getLastPhaseTransitionTime

      @Nullable public OffsetDateTime getLastPhaseTransitionTime()
      lastPhaseTransitionTime is the time the phase transitioned from one to another and automatically resets to current time everytime a volume phase transitions. This is a beta field and requires the PersistentVolumeLastPhaseTransitionTime feature to be enabled (enabled by default).
      Returns:
      lastPhaseTransitionTime
    • setLastPhaseTransitionTime

      public void setLastPhaseTransitionTime(OffsetDateTime lastPhaseTransitionTime)
    • message

      public V1PersistentVolumeStatus message(String message)
    • getMessage

      @Nullable public String getMessage()
      message is a human-readable message indicating details about why the volume is in this state.
      Returns:
      message
    • setMessage

      public void setMessage(String message)
    • phase

      public V1PersistentVolumeStatus phase(String phase)
    • getPhase

      @Nullable public String getPhase()
      phase indicates if a volume is available, bound to a claim, or released by a claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#phase
      Returns:
      phase
    • setPhase

      public void setPhase(String phase)
    • reason

      public V1PersistentVolumeStatus reason(String reason)
    • getReason

      @Nullable public String getReason()
      reason is a brief CamelCase string that describes any failure and is meant for machine parsing and tidy display in the CLI.
      Returns:
      reason
    • setReason

      public void setReason(String reason)
    • 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 V1PersistentVolumeStatus
    • fromJson

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

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