Class EventsV1Event

java.lang.Object
io.micronaut.kubernetes.client.openapi.model.EventsV1Event

@Generated("io.micronaut.openapi.generator.JavaMicronautClientCodegen") public class EventsV1Event extends Object
Event is a report of an event somewhere in the cluster. It generally denotes some state change in the system. Events have a limited retention time and triggers and messages may evolve with time. Event consumers should not rely on the timing of an event with a given Reason reflecting a consistent underlying trigger, or the continued existence of events with that Reason. Events should be treated as informative, best-effort, supplemental data.
  • Field Details

  • Constructor Details

  • Method Details

    • getEventTime

      public ZonedDateTime getEventTime()
      eventTime is the time when this Event was first observed. It is required.
      Returns:
      the eventTime property value
    • setEventTime

      public void setEventTime(ZonedDateTime eventTime)
      Set the eventTime property value
      Parameters:
      eventTime - property value to set
    • eventTime

      public EventsV1Event eventTime(ZonedDateTime eventTime)
      Set eventTime in a chainable fashion.
      Returns:
      The same instance of EventsV1Event for chaining.
    • getAction

      public String getAction()
      action is what action was taken/failed regarding to the regarding object. It is machine-readable. This field cannot be empty for new Events and it can have at most 128 characters.
      Returns:
      the action property value
    • setAction

      public void setAction(String action)
      Set the action property value
      Parameters:
      action - property value to set
    • action

      public EventsV1Event action(String action)
      Set action in a chainable fashion.
      Returns:
      The same instance of EventsV1Event for chaining.
    • getApiVersion

      public String getApiVersion()
      APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
      Returns:
      the apiVersion property value
    • setApiVersion

      public void setApiVersion(String apiVersion)
      Set the apiVersion property value
      Parameters:
      apiVersion - property value to set
    • apiVersion

      public EventsV1Event apiVersion(String apiVersion)
      Set apiVersion in a chainable fashion.
      Returns:
      The same instance of EventsV1Event for chaining.
    • getDeprecatedCount

      public Integer getDeprecatedCount()
      deprecatedCount is the deprecated field assuring backward compatibility with core.v1 Event type.
      Returns:
      the deprecatedCount property value
    • setDeprecatedCount

      public void setDeprecatedCount(Integer deprecatedCount)
      Set the deprecatedCount property value
      Parameters:
      deprecatedCount - property value to set
    • deprecatedCount

      public EventsV1Event deprecatedCount(Integer deprecatedCount)
      Set deprecatedCount in a chainable fashion.
      Returns:
      The same instance of EventsV1Event for chaining.
    • getDeprecatedFirstTimestamp

      public ZonedDateTime getDeprecatedFirstTimestamp()
      deprecatedFirstTimestamp is the deprecated field assuring backward compatibility with core.v1 Event type.
      Returns:
      the deprecatedFirstTimestamp property value
    • setDeprecatedFirstTimestamp

      public void setDeprecatedFirstTimestamp(ZonedDateTime deprecatedFirstTimestamp)
      Set the deprecatedFirstTimestamp property value
      Parameters:
      deprecatedFirstTimestamp - property value to set
    • deprecatedFirstTimestamp

      public EventsV1Event deprecatedFirstTimestamp(ZonedDateTime deprecatedFirstTimestamp)
      Set deprecatedFirstTimestamp in a chainable fashion.
      Returns:
      The same instance of EventsV1Event for chaining.
    • getDeprecatedLastTimestamp

      public ZonedDateTime getDeprecatedLastTimestamp()
      deprecatedLastTimestamp is the deprecated field assuring backward compatibility with core.v1 Event type.
      Returns:
      the deprecatedLastTimestamp property value
    • setDeprecatedLastTimestamp

      public void setDeprecatedLastTimestamp(ZonedDateTime deprecatedLastTimestamp)
      Set the deprecatedLastTimestamp property value
      Parameters:
      deprecatedLastTimestamp - property value to set
    • deprecatedLastTimestamp

      public EventsV1Event deprecatedLastTimestamp(ZonedDateTime deprecatedLastTimestamp)
      Set deprecatedLastTimestamp in a chainable fashion.
      Returns:
      The same instance of EventsV1Event for chaining.
    • getDeprecatedSource

      public V1EventSource getDeprecatedSource()
      Returns:
      the deprecatedSource property value
    • setDeprecatedSource

      public void setDeprecatedSource(V1EventSource deprecatedSource)
      Set the deprecatedSource property value
      Parameters:
      deprecatedSource - property value to set
    • deprecatedSource

      public EventsV1Event deprecatedSource(V1EventSource deprecatedSource)
      Set deprecatedSource in a chainable fashion.
      Returns:
      The same instance of EventsV1Event for chaining.
    • getKind

      public String getKind()
      Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
      Returns:
      the kind property value
    • setKind

      public void setKind(String kind)
      Set the kind property value
      Parameters:
      kind - property value to set
    • kind

      public EventsV1Event kind(String kind)
      Set kind in a chainable fashion.
      Returns:
      The same instance of EventsV1Event for chaining.
    • getMetadata

      public V1ObjectMeta getMetadata()
      Returns:
      the metadata property value
    • setMetadata

      public void setMetadata(V1ObjectMeta metadata)
      Set the metadata property value
      Parameters:
      metadata - property value to set
    • metadata

      public EventsV1Event metadata(V1ObjectMeta metadata)
      Set metadata in a chainable fashion.
      Returns:
      The same instance of EventsV1Event for chaining.
    • getNote

      public String getNote()
      note is a human-readable description of the status of this operation. Maximal length of the note is 1kB, but libraries should be prepared to handle values up to 64kB.
      Returns:
      the note property value
    • setNote

      public void setNote(String note)
      Set the note property value
      Parameters:
      note - property value to set
    • note

      public EventsV1Event note(String note)
      Set note in a chainable fashion.
      Returns:
      The same instance of EventsV1Event for chaining.
    • getReason

      public String getReason()
      reason is why the action was taken. It is human-readable. This field cannot be empty for new Events and it can have at most 128 characters.
      Returns:
      the reason property value
    • setReason

      public void setReason(String reason)
      Set the reason property value
      Parameters:
      reason - property value to set
    • reason

      public EventsV1Event reason(String reason)
      Set reason in a chainable fashion.
      Returns:
      The same instance of EventsV1Event for chaining.
    • getRegarding

      public V1ObjectReference getRegarding()
      Returns:
      the regarding property value
    • setRegarding

      public void setRegarding(V1ObjectReference regarding)
      Set the regarding property value
      Parameters:
      regarding - property value to set
    • regarding

      public EventsV1Event regarding(V1ObjectReference regarding)
      Set regarding in a chainable fashion.
      Returns:
      The same instance of EventsV1Event for chaining.
    • getRelated

      public V1ObjectReference getRelated()
      Returns:
      the related property value
    • setRelated

      public void setRelated(V1ObjectReference related)
      Set the related property value
      Parameters:
      related - property value to set
    • related

      public EventsV1Event related(V1ObjectReference related)
      Set related in a chainable fashion.
      Returns:
      The same instance of EventsV1Event for chaining.
    • getReportingController

      public String getReportingController()
      reportingController is the name of the controller that emitted this Event, e.g. `kubernetes.io/kubelet`. This field cannot be empty for new Events.
      Returns:
      the reportingController property value
    • setReportingController

      public void setReportingController(String reportingController)
      Set the reportingController property value
      Parameters:
      reportingController - property value to set
    • reportingController

      public EventsV1Event reportingController(String reportingController)
      Set reportingController in a chainable fashion.
      Returns:
      The same instance of EventsV1Event for chaining.
    • getReportingInstance

      public String getReportingInstance()
      reportingInstance is the ID of the controller instance, e.g. `kubelet-xyzf`. This field cannot be empty for new Events and it can have at most 128 characters.
      Returns:
      the reportingInstance property value
    • setReportingInstance

      public void setReportingInstance(String reportingInstance)
      Set the reportingInstance property value
      Parameters:
      reportingInstance - property value to set
    • reportingInstance

      public EventsV1Event reportingInstance(String reportingInstance)
      Set reportingInstance in a chainable fashion.
      Returns:
      The same instance of EventsV1Event for chaining.
    • getSeries

      public EventsV1EventSeries getSeries()
      Returns:
      the series property value
    • setSeries

      public void setSeries(EventsV1EventSeries series)
      Set the series property value
      Parameters:
      series - property value to set
    • series

      public EventsV1Event series(EventsV1EventSeries series)
      Set series in a chainable fashion.
      Returns:
      The same instance of EventsV1Event for chaining.
    • getType

      public String getType()
      type is the type of this event (Normal, Warning), new types could be added in the future. It is machine-readable. This field cannot be empty for new Events.
      Returns:
      the type property value
    • setType

      public void setType(String type)
      Set the type property value
      Parameters:
      type - property value to set
    • type

      public EventsV1Event type(String type)
      Set type in a chainable fashion.
      Returns:
      The same instance of EventsV1Event for chaining.
    • 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