Class KubeEventProps.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • action

        @Stability(Stable)
        public KubeEventProps.Builder action​(String action)
        Sets the value of KubeEventProps.getAction()
        Parameters:
        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
      • metadata

        @Stability(Stable)
        public KubeEventProps.Builder metadata​(ObjectMeta metadata)
        Parameters:
        metadata - Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
        Returns:
        this
      • note

        @Stability(Stable)
        public KubeEventProps.Builder note​(String note)
        Sets the value of KubeEventProps.getNote()
        Parameters:
        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

        @Stability(Stable)
        public KubeEventProps.Builder reason​(String reason)
        Sets the value of KubeEventProps.getReason()
        Parameters:
        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

        @Stability(Stable)
        public KubeEventProps.Builder regarding​(ObjectReference regarding)
        Parameters:
        regarding - regarding contains the object this Event is about. In most cases it's an Object reporting controller implements, e.g. ReplicaSetController implements ReplicaSets and this event is emitted because it acts on some changes in a ReplicaSet object.
        Returns:
        this
      • related

        @Stability(Stable)
        public KubeEventProps.Builder related​(ObjectReference related)
        Sets the value of KubeEventProps.getRelated()
        Parameters:
        related - related is the optional secondary object for more complex actions. E.g. when regarding object triggers a creation or deletion of related object.
        Returns:
        this
      • reportingController

        @Stability(Stable)
        public KubeEventProps.Builder reportingController​(String reportingController)
        Parameters:
        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

        @Stability(Stable)
        public KubeEventProps.Builder reportingInstance​(String reportingInstance)
        Parameters:
        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

        @Stability(Stable)
        public KubeEventProps.Builder type​(String type)
        Sets the value of KubeEventProps.getType()
        Parameters:
        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