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

@Generated("io.micronaut.openapi.generator.JavaMicronautClientCodegen") public class CoreV1Event extends Object
Event is a report of an event somewhere in the cluster. 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

    • getInvolvedObject

      public V1ObjectReference getInvolvedObject()
      Returns:
      the involvedObject property value
    • setInvolvedObject

      public void setInvolvedObject(V1ObjectReference involvedObject)
      Set the involvedObject property value
      Parameters:
      involvedObject - property value to set
    • involvedObject

      public CoreV1Event involvedObject(V1ObjectReference involvedObject)
      Set involvedObject in a chainable fashion.
      Returns:
      The same instance of CoreV1Event 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 CoreV1Event metadata(V1ObjectMeta metadata)
      Set metadata in a chainable fashion.
      Returns:
      The same instance of CoreV1Event for chaining.
    • getAction

      public String getAction()
      What action was taken/failed regarding to the Regarding object.
      Returns:
      the action property value
    • setAction

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

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

      public Integer getCount()
      The number of times this event has occurred.
      Returns:
      the count property value
    • setCount

      public void setCount(Integer count)
      Set the count property value
      Parameters:
      count - property value to set
    • count

      public CoreV1Event count(Integer count)
      Set count in a chainable fashion.
      Returns:
      The same instance of CoreV1Event for chaining.
    • getEventTime

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

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

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

      public ZonedDateTime getFirstTimestamp()
      The time at which the event was first recorded. (Time of server receipt is in TypeMeta.)
      Returns:
      the firstTimestamp property value
    • setFirstTimestamp

      public void setFirstTimestamp(ZonedDateTime firstTimestamp)
      Set the firstTimestamp property value
      Parameters:
      firstTimestamp - property value to set
    • firstTimestamp

      public CoreV1Event firstTimestamp(ZonedDateTime firstTimestamp)
      Set firstTimestamp in a chainable fashion.
      Returns:
      The same instance of CoreV1Event 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 CoreV1Event kind(String kind)
      Set kind in a chainable fashion.
      Returns:
      The same instance of CoreV1Event for chaining.
    • getLastTimestamp

      public ZonedDateTime getLastTimestamp()
      The time at which the most recent occurrence of this event was recorded.
      Returns:
      the lastTimestamp property value
    • setLastTimestamp

      public void setLastTimestamp(ZonedDateTime lastTimestamp)
      Set the lastTimestamp property value
      Parameters:
      lastTimestamp - property value to set
    • lastTimestamp

      public CoreV1Event lastTimestamp(ZonedDateTime lastTimestamp)
      Set lastTimestamp in a chainable fashion.
      Returns:
      The same instance of CoreV1Event for chaining.
    • getMessage

      public String getMessage()
      A human-readable description of the status of this operation.
      Returns:
      the message property value
    • setMessage

      public void setMessage(String message)
      Set the message property value
      Parameters:
      message - property value to set
    • message

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

      public String getReason()
      This should be a short, machine understandable string that gives the reason for the transition into the object's current status.
      Returns:
      the reason property value
    • setReason

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

      public CoreV1Event reason(String reason)
      Set reason in a chainable fashion.
      Returns:
      The same instance of CoreV1Event 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 CoreV1Event related(V1ObjectReference related)
      Set related in a chainable fashion.
      Returns:
      The same instance of CoreV1Event for chaining.
    • getReportingComponent

      public String getReportingComponent()
      Name of the controller that emitted this Event, e.g. `kubernetes.io/kubelet`.
      Returns:
      the reportingComponent property value
    • setReportingComponent

      public void setReportingComponent(String reportingComponent)
      Set the reportingComponent property value
      Parameters:
      reportingComponent - property value to set
    • reportingComponent

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

      public String getReportingInstance()
      ID of the controller instance, e.g. `kubelet-xyzf`.
      Returns:
      the reportingInstance property value
    • setReportingInstance

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

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

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

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

      public CoreV1Event series(CoreV1EventSeries series)
      Set series in a chainable fashion.
      Returns:
      The same instance of CoreV1Event for chaining.
    • getSource

      public V1EventSource getSource()
      Returns:
      the source property value
    • setSource

      public void setSource(V1EventSource source)
      Set the source property value
      Parameters:
      source - property value to set
    • source

      public CoreV1Event source(V1EventSource source)
      Set source in a chainable fashion.
      Returns:
      The same instance of CoreV1Event for chaining.
    • getType

      public String getType()
      Type of this event (Normal, Warning), new types could be added in the future
      Returns:
      the type property value
    • setType

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

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