Class CoreV1Event

java.lang.Object
io.kubernetes.client.openapi.models.CoreV1Event
All Implemented Interfaces:
KubernetesObject, KubernetesType

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2022-12-05T08:14:34.919Z[Etc/UTC]") public class CoreV1Event extends Object implements KubernetesObject
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

    • CoreV1Event

      public CoreV1Event()
  • Method Details

    • action

      public CoreV1Event action(String action)
    • getAction

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

      public void setAction(String action)
    • apiVersion

      public CoreV1Event apiVersion(String apiVersion)
    • getApiVersion

      @Nullable 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
      Specified by:
      getApiVersion in interface KubernetesType
      Returns:
      apiVersion
    • setApiVersion

      public void setApiVersion(String apiVersion)
    • count

      public CoreV1Event count(Integer count)
    • getCount

      @Nullable public Integer getCount()
      The number of times this event has occurred.
      Returns:
      count
    • setCount

      public void setCount(Integer count)
    • eventTime

      public CoreV1Event eventTime(OffsetDateTime eventTime)
    • getEventTime

      @Nullable public OffsetDateTime getEventTime()
      Time when this Event was first observed.
      Returns:
      eventTime
    • setEventTime

      public void setEventTime(OffsetDateTime eventTime)
    • firstTimestamp

      public CoreV1Event firstTimestamp(OffsetDateTime firstTimestamp)
    • getFirstTimestamp

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

      public void setFirstTimestamp(OffsetDateTime firstTimestamp)
    • involvedObject

      public CoreV1Event involvedObject(V1ObjectReference involvedObject)
    • getInvolvedObject

      public V1ObjectReference getInvolvedObject()
      Get involvedObject
      Returns:
      involvedObject
    • setInvolvedObject

      public void setInvolvedObject(V1ObjectReference involvedObject)
    • kind

      public CoreV1Event kind(String kind)
    • getKind

      @Nullable 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
      Specified by:
      getKind in interface KubernetesType
      Returns:
      kind
    • setKind

      public void setKind(String kind)
    • lastTimestamp

      public CoreV1Event lastTimestamp(OffsetDateTime lastTimestamp)
    • getLastTimestamp

      @Nullable public OffsetDateTime getLastTimestamp()
      The time at which the most recent occurrence of this event was recorded.
      Returns:
      lastTimestamp
    • setLastTimestamp

      public void setLastTimestamp(OffsetDateTime lastTimestamp)
    • message

      public CoreV1Event message(String message)
    • getMessage

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

      public void setMessage(String message)
    • metadata

      public CoreV1Event metadata(V1ObjectMeta metadata)
    • getMetadata

      public V1ObjectMeta getMetadata()
      Get metadata
      Specified by:
      getMetadata in interface KubernetesObject
      Returns:
      metadata
    • setMetadata

      public void setMetadata(V1ObjectMeta metadata)
    • reason

      public CoreV1Event reason(String reason)
    • getReason

      @Nullable 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:
      reason
    • setReason

      public void setReason(String reason)
    • related

      public CoreV1Event related(V1ObjectReference related)
    • getRelated

      @Nullable public V1ObjectReference getRelated()
      Get related
      Returns:
      related
    • setRelated

      public void setRelated(V1ObjectReference related)
    • reportingComponent

      public CoreV1Event reportingComponent(String reportingComponent)
    • getReportingComponent

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

      public void setReportingComponent(String reportingComponent)
    • reportingInstance

      public CoreV1Event reportingInstance(String reportingInstance)
    • getReportingInstance

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

      public void setReportingInstance(String reportingInstance)
    • series

      public CoreV1Event series(CoreV1EventSeries series)
    • getSeries

      @Nullable public CoreV1EventSeries getSeries()
      Get series
      Returns:
      series
    • setSeries

      public void setSeries(CoreV1EventSeries series)
    • source

      public CoreV1Event source(V1EventSource source)
    • getSource

      @Nullable public V1EventSource getSource()
      Get source
      Returns:
      source
    • setSource

      public void setSource(V1EventSource source)
    • type

      public CoreV1Event type(String type)
    • getType

      @Nullable public String getType()
      Type of this event (Normal, Warning), new types could be added in the future
      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