Class V1WatchEvent
java.lang.Object
io.kubernetes.client.openapi.models.V1WatchEvent
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2024-10-04T19:37:38.574271Z[Etc/UTC]",
comments="Generator version: 7.6.0")
public class V1WatchEvent
extends Object
Event represents a single event to a watched resource.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic V1WatchEventCreate an instance of V1WatchEvent given an JSON stringObject is: * If Type is Added or Modified: the new state of the objectgetType()Get typeinthashCode()voidvoidtoJson()Convert an instance of V1WatchEvent 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_OBJECT
- See Also:
-
SERIALIZED_NAME_TYPE
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
V1WatchEvent
public V1WatchEvent()
-
-
Method Details
-
_object
-
getObject
Object is: * If Type is Added or Modified: the new state of the object. * If Type is Deleted: the state of the object immediately before deletion. * If Type is Error: *Status is recommended; other types may make sense depending on context.- Returns:
- _object
-
setObject
-
type
-
getType
Get type- Returns:
- type
-
setType
-
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 V1WatchEvent
-
fromJson
Create an instance of V1WatchEvent given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of V1WatchEvent
- Throws:
IOException- if the JSON string is invalid with respect to V1WatchEvent
-
toJson
Convert an instance of V1WatchEvent to an JSON string- Returns:
- JSON string
-