Class V1VolumeError

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

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2024-02-02T17:56:12.287571Z[Etc/UTC]") public class V1VolumeError extends Object
VolumeError captures an error encountered during a volume operation.
  • Field Details

  • Constructor Details

    • V1VolumeError

      public V1VolumeError()
  • Method Details

    • message

      public V1VolumeError message(String message)
    • getMessage

      @Nullable public String getMessage()
      message represents the error encountered during Attach or Detach operation. This string may be logged, so it should not contain sensitive information.
      Returns:
      message
    • setMessage

      public void setMessage(String message)
    • time

      public V1VolumeError time(OffsetDateTime time)
    • getTime

      @Nullable public OffsetDateTime getTime()
      time represents the time the error was encountered.
      Returns:
      time
    • setTime

      public void setTime(OffsetDateTime time)
    • 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 V1VolumeError
    • fromJson

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

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