Class V1WatchEvent

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

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2024-02-02T17:56:12.287571Z[Etc/UTC]") public class V1WatchEvent extends Object
Event represents a single event to a watched resource.
  • Field Details

  • Constructor Details

    • V1WatchEvent

      public V1WatchEvent()
  • Method Details

    • _object

      public V1WatchEvent _object(Object _object)
    • getObject

      @Nonnull public 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

      public void setObject(Object _object)
    • type

      public V1WatchEvent type(String type)
    • getType

      @Nonnull public String getType()
      Get type
      Returns:
      type
    • setType

      public void setType(String type)
    • 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 V1WatchEvent
    • fromJson

      public static V1WatchEvent fromJson(String jsonString) throws IOException
      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

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