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)
        action is what action was taken/failed regarding to the regarding object. It is machine-readable. This field 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)
      • 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.
      • 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 can have at most 128 characters.
        Returns:
        this.
      • 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.
      • 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.
        Returns:
        this.
      • build

        public Event build()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object