Class Event.Builder
- java.lang.Object
-
- com.marcnuri.yakc.model.io.k8s.api.events.v1.Event.Builder
-
- Enclosing class:
- Event
public static class Event.Builder extends java.lang.Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Event.Builder
action(java.lang.String action)
action is what action was taken/failed regarding to the regarding object.Event.Builder
apiVersion(java.lang.String apiVersion)
APIVersion defines the versioned schema of this representation of an object.Event
build()
Event.Builder
deprecatedCount(java.lang.Number deprecatedCount)
deprecatedCount is the deprecated field assuring backward compatibility with core.v1 Event type.Event.Builder
deprecatedFirstTimestamp(java.time.OffsetDateTime deprecatedFirstTimestamp)
Event.Builder
deprecatedLastTimestamp(java.time.OffsetDateTime deprecatedLastTimestamp)
Event.Builder
deprecatedSource(EventSource deprecatedSource)
Event.Builder
eventTime(@NonNull java.time.OffsetDateTime eventTime)
Event.Builder
kind(java.lang.String kind)
Kind is a string value representing the REST resource this object represents.Event.Builder
metadata(@NonNull ObjectMeta metadata)
Event.Builder
note(java.lang.String note)
note is a human-readable description of the status of this operation.Event.Builder
reason(java.lang.String reason)
reason is why the action was taken.Event.Builder
regarding(ObjectReference regarding)
Event.Builder
related(ObjectReference related)
Event.Builder
reportingController(java.lang.String reportingController)
reportingController is the name of the controller that emitted this Event, e.g.Event.Builder
reportingInstance(java.lang.String reportingInstance)
reportingInstance is the ID of the controller instance, e.g.Event.Builder
series(EventSeries series)
java.lang.String
toString()
Event.Builder
type(java.lang.String type)
type is the type of this event (Normal, Warning), new types could be added in the future.
-
-
-
Method Detail
-
action
public Event.Builder action(java.lang.String action)
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:
this
.
-
apiVersion
public Event.Builder apiVersion(java.lang.String apiVersion)
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:
this
.
-
deprecatedCount
public Event.Builder deprecatedCount(java.lang.Number deprecatedCount)
deprecatedCount is the deprecated field assuring backward compatibility with core.v1 Event type.- Returns:
this
.
-
deprecatedFirstTimestamp
public Event.Builder deprecatedFirstTimestamp(java.time.OffsetDateTime deprecatedFirstTimestamp)
-
deprecatedLastTimestamp
public Event.Builder deprecatedLastTimestamp(java.time.OffsetDateTime deprecatedLastTimestamp)
-
deprecatedSource
public Event.Builder deprecatedSource(EventSource deprecatedSource)
-
eventTime
public Event.Builder eventTime(@NonNull @NonNull java.time.OffsetDateTime eventTime)
-
kind
public Event.Builder kind(java.lang.String kind)
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:
this
.
-
metadata
public Event.Builder metadata(@NonNull @NonNull ObjectMeta metadata)
-
note
public Event.Builder note(java.lang.String note)
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:
this
.
-
reason
public Event.Builder reason(java.lang.String reason)
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:
this
.
-
regarding
public Event.Builder regarding(ObjectReference regarding)
-
related
public Event.Builder related(ObjectReference related)
-
reportingController
public Event.Builder reportingController(java.lang.String reportingController)
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:
this
.
-
reportingInstance
public Event.Builder reportingInstance(java.lang.String reportingInstance)
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:
this
.
-
series
public Event.Builder series(EventSeries series)
-
type
public Event.Builder type(java.lang.String type)
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:
this
.
-
build
public Event build()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-