Class V1ModifyVolumeStatus

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

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2025-02-04T19:05:53.712211Z[Etc/UTC]", comments="Generator version: 7.6.0") public class V1ModifyVolumeStatus extends Object
ModifyVolumeStatus represents the status object of ControllerModifyVolume operation
  • Field Details

    • SERIALIZED_NAME_STATUS

      public static final String SERIALIZED_NAME_STATUS
      See Also:
    • SERIALIZED_NAME_TARGET_VOLUME_ATTRIBUTES_CLASS_NAME

      public static final String SERIALIZED_NAME_TARGET_VOLUME_ATTRIBUTES_CLASS_NAME
      See Also:
    • openapiFields

      public static HashSet<String> openapiFields
    • openapiRequiredFields

      public static HashSet<String> openapiRequiredFields
  • Constructor Details

    • V1ModifyVolumeStatus

      public V1ModifyVolumeStatus()
  • Method Details

    • status

      public V1ModifyVolumeStatus status(String status)
    • getStatus

      @Nonnull public String getStatus()
      status is the status of the ControllerModifyVolume operation. It can be in any of following states: - Pending Pending indicates that the PersistentVolumeClaim cannot be modified due to unmet requirements, such as the specified VolumeAttributesClass not existing. - InProgress InProgress indicates that the volume is being modified. - Infeasible Infeasible indicates that the request has been rejected as invalid by the CSI driver. To resolve the error, a valid VolumeAttributesClass needs to be specified. Note: New statuses can be added in the future. Consumers should check for unknown statuses and fail appropriately.
      Returns:
      status
    • setStatus

      public void setStatus(String status)
    • targetVolumeAttributesClassName

      public V1ModifyVolumeStatus targetVolumeAttributesClassName(String targetVolumeAttributesClassName)
    • getTargetVolumeAttributesClassName

      @Nullable public String getTargetVolumeAttributesClassName()
      targetVolumeAttributesClassName is the name of the VolumeAttributesClass the PVC currently being reconciled
      Returns:
      targetVolumeAttributesClassName
    • setTargetVolumeAttributesClassName

      public void setTargetVolumeAttributesClassName(String targetVolumeAttributesClassName)
    • 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 V1ModifyVolumeStatus
    • fromJson

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

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