Class Event.Builder
- java.lang.Object
-
- com.marcnuri.yakc.model.io.k8s.api.core.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)
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
count(java.lang.Number count)
The number of times this event has occurred.Event.Builder
eventTime(java.time.OffsetDateTime eventTime)
Event.Builder
firstTimestamp(java.time.OffsetDateTime firstTimestamp)
Event.Builder
involvedObject(@NonNull ObjectReference involvedObject)
Event.Builder
kind(java.lang.String kind)
Kind is a string value representing the REST resource this object represents.Event.Builder
lastTimestamp(java.time.OffsetDateTime lastTimestamp)
Event.Builder
message(java.lang.String message)
A human-readable description of the status of this operation.Event.Builder
metadata(@NonNull ObjectMeta metadata)
Event.Builder
reason(java.lang.String reason)
This should be a short, machine understandable string that gives the reason for the transition into the object's current status.Event.Builder
related(ObjectReference related)
Event.Builder
reportingComponent(java.lang.String reportingComponent)
Name of the controller that emitted this Event, e.g.Event.Builder
reportingInstance(java.lang.String reportingInstance)
ID of the controller instance, e.g.Event.Builder
series(EventSeries series)
Event.Builder
source(EventSource source)
java.lang.String
toString()
Event.Builder
type(java.lang.String type)
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)
What action was taken/failed regarding to the Regarding object.- 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
.
-
count
public Event.Builder count(java.lang.Number count)
The number of times this event has occurred.- Returns:
this
.
-
eventTime
public Event.Builder eventTime(java.time.OffsetDateTime eventTime)
- Returns:
this
.
-
firstTimestamp
public Event.Builder firstTimestamp(java.time.OffsetDateTime firstTimestamp)
- Returns:
this
.
-
involvedObject
public Event.Builder involvedObject(@NonNull @NonNull ObjectReference involvedObject)
- Returns:
this
.
-
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
.
-
lastTimestamp
public Event.Builder lastTimestamp(java.time.OffsetDateTime lastTimestamp)
- Returns:
this
.
-
message
public Event.Builder message(java.lang.String message)
A human-readable description of the status of this operation.- Returns:
this
.
-
metadata
public Event.Builder metadata(@NonNull @NonNull ObjectMeta metadata)
- Returns:
this
.
-
reason
public Event.Builder reason(java.lang.String reason)
This should be a short, machine understandable string that gives the reason for the transition into the object's current status.- Returns:
this
.
-
related
public Event.Builder related(ObjectReference related)
- Returns:
this
.
-
reportingComponent
public Event.Builder reportingComponent(java.lang.String reportingComponent)
Name of the controller that emitted this Event, e.g. `kubernetes.io/kubelet`.- Returns:
this
.
-
reportingInstance
public Event.Builder reportingInstance(java.lang.String reportingInstance)
ID of the controller instance, e.g. `kubelet-xyzf`.- Returns:
this
.
-
series
public Event.Builder series(EventSeries series)
- Returns:
this
.
-
source
public Event.Builder source(EventSource source)
- Returns:
this
.
-
type
public Event.Builder type(java.lang.String type)
Type of this event (Normal, Warning), new types could be added in the future- Returns:
this
.
-
build
public Event build()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-