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.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
static V1PersistentVolumeStatus
Create an instance of V1PersistentVolumeStatus given an JSON stringlastPhaseTransitionTime is the time the phase transitioned from one to another and automatically resets to current time everytime a volume phase transitions.message is a human-readable message indicating details about why the volume is in this state.getPhase()
phase indicates if a volume is available, bound to a claim, or released by a claim.reason is a brief CamelCase string that describes any failure and is meant for machine parsing and tidy display in the CLI.int
hashCode()
lastPhaseTransitionTime
(OffsetDateTime lastPhaseTransitionTime) void
setLastPhaseTransitionTime
(OffsetDateTime lastPhaseTransitionTime) void
setMessage
(String message) void
void
toJson()
Convert an instance of V1PersistentVolumeStatus to an JSON stringtoString()
static void
validateJsonObject
(com.google.gson.JsonObject jsonObj) Validates the JSON Object and throws an exception if issues found
-
Field Details
-
SERIALIZED_NAME_LAST_PHASE_TRANSITION_TIME
- See Also:
-
SERIALIZED_NAME_MESSAGE
- See Also:
-
SERIALIZED_NAME_PHASE
- See Also:
-
SERIALIZED_NAME_REASON
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
V1PersistentVolumeStatus
public V1PersistentVolumeStatus()
-
-
Method Details
-
lastPhaseTransitionTime
-
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
-
message
-
getMessage
message is a human-readable message indicating details about why the volume is in this state.- Returns:
- message
-
setMessage
-
phase
-
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
-
reason
-
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
-
equals
-
hashCode
public int hashCode() -
toString
-
validateJsonObject
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
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
Convert an instance of V1PersistentVolumeStatus to an JSON string- Returns:
- JSON string
-