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.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
static V1VolumeError
Create an instance of V1VolumeError given an JSON stringmessage represents the error encountered during Attach or Detach operation.getTime()
time represents the time the error was encountered.int
hashCode()
void
setMessage
(String message) void
setTime
(OffsetDateTime time) time
(OffsetDateTime time) toJson()
Convert an instance of V1VolumeError 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_MESSAGE
- See Also:
-
SERIALIZED_NAME_TIME
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
V1VolumeError
public V1VolumeError()
-
-
Method Details
-
message
-
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
-
time
-
getTime
time represents the time the error was encountered.- Returns:
- time
-
setTime
-
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 V1VolumeError
-
fromJson
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
Convert an instance of V1VolumeError to an JSON string- Returns:
- JSON string
-