Package org.cdk8s.plus24.k8s
Class KubeEventV1Beta1Props.Builder
- java.lang.Object
-
- org.cdk8s.plus24.k8s.KubeEventV1Beta1Props.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<KubeEventV1Beta1Props>
- Enclosing interface:
- KubeEventV1Beta1Props
@Stability(Stable) public static final class KubeEventV1Beta1Props.Builder extends Object implements software.amazon.jsii.Builder<KubeEventV1Beta1Props>
A builder forKubeEventV1Beta1Props
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
-
-
Method Detail
-
eventTime
@Stability(Stable) public KubeEventV1Beta1Props.Builder eventTime(Instant eventTime)
Sets the value ofKubeEventV1Beta1Props.getEventTime()
- Parameters:
eventTime
- eventTime is the time when this Event was first observed. This parameter is required. It is required.- Returns:
this
-
action
@Stability(Stable) public KubeEventV1Beta1Props.Builder action(String action)
Sets the value ofKubeEventV1Beta1Props.getAction()
- Parameters:
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
-
deprecatedCount
@Stability(Stable) public KubeEventV1Beta1Props.Builder deprecatedCount(Number deprecatedCount)
Sets the value ofKubeEventV1Beta1Props.getDeprecatedCount()
- Parameters:
deprecatedCount
- deprecatedCount is the deprecated field assuring backward compatibility with core.v1 Event type.- Returns:
this
-
deprecatedFirstTimestamp
@Stability(Stable) public KubeEventV1Beta1Props.Builder deprecatedFirstTimestamp(Instant deprecatedFirstTimestamp)
Sets the value ofKubeEventV1Beta1Props.getDeprecatedFirstTimestamp()
- Parameters:
deprecatedFirstTimestamp
- deprecatedFirstTimestamp is the deprecated field assuring backward compatibility with core.v1 Event type.- Returns:
this
-
deprecatedLastTimestamp
@Stability(Stable) public KubeEventV1Beta1Props.Builder deprecatedLastTimestamp(Instant deprecatedLastTimestamp)
Sets the value ofKubeEventV1Beta1Props.getDeprecatedLastTimestamp()
- Parameters:
deprecatedLastTimestamp
- deprecatedLastTimestamp is the deprecated field assuring backward compatibility with core.v1 Event type.- Returns:
this
-
deprecatedSource
@Stability(Stable) public KubeEventV1Beta1Props.Builder deprecatedSource(EventSource deprecatedSource)
Sets the value ofKubeEventV1Beta1Props.getDeprecatedSource()
- Parameters:
deprecatedSource
- deprecatedSource is the deprecated field assuring backward compatibility with core.v1 Event type.- Returns:
this
-
metadata
@Stability(Stable) public KubeEventV1Beta1Props.Builder metadata(ObjectMeta metadata)
Sets the value ofKubeEventV1Beta1Props.getMetadata()
- 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 KubeEventV1Beta1Props.Builder note(String note)
Sets the value ofKubeEventV1Beta1Props.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 KubeEventV1Beta1Props.Builder reason(String reason)
Sets the value ofKubeEventV1Beta1Props.getReason()
- Parameters:
reason
- reason is why the action was taken. It is human-readable. This field can have at most 128 characters.- Returns:
this
-
regarding
@Stability(Stable) public KubeEventV1Beta1Props.Builder regarding(ObjectReference regarding)
Sets the value ofKubeEventV1Beta1Props.getRegarding()
- 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 KubeEventV1Beta1Props.Builder related(ObjectReference related)
Sets the value ofKubeEventV1Beta1Props.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 KubeEventV1Beta1Props.Builder reportingController(String reportingController)
Sets the value ofKubeEventV1Beta1Props.getReportingController()
- 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 KubeEventV1Beta1Props.Builder reportingInstance(String reportingInstance)
Sets the value ofKubeEventV1Beta1Props.getReportingInstance()
- 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
-
series
@Stability(Stable) public KubeEventV1Beta1Props.Builder series(EventSeriesV1Beta1 series)
Sets the value ofKubeEventV1Beta1Props.getSeries()
- Parameters:
series
- series is data about the Event series this event represents or nil if it's a singleton Event.- Returns:
this
-
type
@Stability(Stable) public KubeEventV1Beta1Props.Builder type(String type)
Sets the value ofKubeEventV1Beta1Props.getType()
- Parameters:
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
@Stability(Stable) public KubeEventV1Beta1Props build()
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<KubeEventV1Beta1Props>
- Returns:
- a new instance of
KubeEventV1Beta1Props
- Throws:
NullPointerException
- if any required attribute was not provided
-
-