Class V1StatusCause
java.lang.Object
io.kubernetes.client.openapi.models.V1StatusCause
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2024-10-04T19:37:38.574271Z[Etc/UTC]",
comments="Generator version: 7.6.0")
public class V1StatusCause
extends Object
StatusCause provides more information about an api.Status failure, including cases when multiple errors are encountered.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic V1StatusCauseCreate an instance of V1StatusCause given an JSON stringgetField()The field of the resource that has caused this error, as named by its JSON serialization.A human-readable description of the cause of the error.A machine-readable description of the cause of the error.inthashCode()voidvoidsetMessage(String message) voidtoJson()Convert an instance of V1StatusCause to an JSON stringtoString()static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement) Validates the JSON Element and throws an exception if issues found
-
Field Details
-
SERIALIZED_NAME_FIELD
- See Also:
-
SERIALIZED_NAME_MESSAGE
- See Also:
-
SERIALIZED_NAME_REASON
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
V1StatusCause
public V1StatusCause()
-
-
Method Details
-
field
-
getField
The field of the resource that has caused this error, as named by its JSON serialization. May include dot and postfix notation for nested attributes. Arrays are zero-indexed. Fields may appear more than once in an array of causes due to fields having multiple errors. Optional. Examples: \"name\" - the field \"name\" on the current resource \"items[0].name\" - the field \"name\" on the first array entry in \"items\"- Returns:
- field
-
setField
-
message
-
getMessage
A human-readable description of the cause of the error. This field may be presented as-is to a reader.- Returns:
- message
-
setMessage
-
reason
-
getReason
A machine-readable description of the cause of the error. If this value is empty there is no information available.- Returns:
- reason
-
setReason
-
equals
-
hashCode
public int hashCode() -
toString
-
validateJsonElement
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 V1StatusCause
-
fromJson
Create an instance of V1StatusCause given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of V1StatusCause
- Throws:
IOException- if the JSON string is invalid with respect to V1StatusCause
-
toJson
Convert an instance of V1StatusCause to an JSON string- Returns:
- JSON string
-