Class EventsV1Event

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

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

    • EventsV1Event

      public EventsV1Event()
  • Method Details

    • action

      public EventsV1Event action(String action)
    • getAction

      @Nullable 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:
      action
    • setAction

      public void setAction(String action)
    • apiVersion

      public EventsV1Event 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)
    • deprecatedCount

      public EventsV1Event deprecatedCount(Integer deprecatedCount)
    • getDeprecatedCount

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

      public void setDeprecatedCount(Integer deprecatedCount)
    • deprecatedFirstTimestamp

      public EventsV1Event deprecatedFirstTimestamp(OffsetDateTime deprecatedFirstTimestamp)
    • getDeprecatedFirstTimestamp

      @Nullable public OffsetDateTime getDeprecatedFirstTimestamp()
      deprecatedFirstTimestamp is the deprecated field assuring backward compatibility with core.v1 Event type.
      Returns:
      deprecatedFirstTimestamp
    • setDeprecatedFirstTimestamp

      public void setDeprecatedFirstTimestamp(OffsetDateTime deprecatedFirstTimestamp)
    • deprecatedLastTimestamp

      public EventsV1Event deprecatedLastTimestamp(OffsetDateTime deprecatedLastTimestamp)
    • getDeprecatedLastTimestamp

      @Nullable public OffsetDateTime getDeprecatedLastTimestamp()
      deprecatedLastTimestamp is the deprecated field assuring backward compatibility with core.v1 Event type.
      Returns:
      deprecatedLastTimestamp
    • setDeprecatedLastTimestamp

      public void setDeprecatedLastTimestamp(OffsetDateTime deprecatedLastTimestamp)
    • deprecatedSource

      public EventsV1Event deprecatedSource(V1EventSource deprecatedSource)
    • getDeprecatedSource

      @Nullable public V1EventSource getDeprecatedSource()
      Get deprecatedSource
      Returns:
      deprecatedSource
    • setDeprecatedSource

      public void setDeprecatedSource(V1EventSource deprecatedSource)
    • eventTime

      public EventsV1Event eventTime(OffsetDateTime eventTime)
    • getEventTime

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

      public void setEventTime(OffsetDateTime eventTime)
    • kind

      public EventsV1Event 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)
    • metadata

      public EventsV1Event metadata(V1ObjectMeta metadata)
    • getMetadata

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

      public void setMetadata(V1ObjectMeta metadata)
    • note

      public EventsV1Event note(String note)
    • getNote

      @Nullable 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:
      note
    • setNote

      public void setNote(String note)
    • reason

      public EventsV1Event reason(String reason)
    • getReason

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

      public void setReason(String reason)
    • regarding

      public EventsV1Event regarding(V1ObjectReference regarding)
    • getRegarding

      @Nullable public V1ObjectReference getRegarding()
      Get regarding
      Returns:
      regarding
    • setRegarding

      public void setRegarding(V1ObjectReference regarding)
    • related

      public EventsV1Event related(V1ObjectReference related)
    • getRelated

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

      public void setRelated(V1ObjectReference related)
    • reportingController

      public EventsV1Event reportingController(String reportingController)
    • getReportingController

      @Nullable 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:
      reportingController
    • setReportingController

      public void setReportingController(String reportingController)
    • reportingInstance

      public EventsV1Event reportingInstance(String reportingInstance)
    • getReportingInstance

      @Nullable 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:
      reportingInstance
    • setReportingInstance

      public void setReportingInstance(String reportingInstance)
    • series

      public EventsV1Event series(EventsV1EventSeries series)
    • getSeries

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

      public void setSeries(EventsV1EventSeries series)
    • type

      public EventsV1Event type(String type)
    • getType

      @Nullable 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:
      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