Class Event.Builder

  • Enclosing class:
    Event

    public static class Event.Builder
    extends java.lang.Object
    • 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.
      • 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.
      • 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.
      • 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.
      • 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 class java.lang.Object