Package org.cdk8s.plus23.k8s
Class EventSeries.Builder
- java.lang.Object
-
- org.cdk8s.plus23.k8s.EventSeries.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<EventSeries>
- Enclosing interface:
- EventSeries
@Stability(Stable) public static final class EventSeries.Builder extends Object implements software.amazon.jsii.Builder<EventSeries>
A builder forEventSeries
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EventSeries
build()
Builds the configured instance.EventSeries.Builder
count(Number count)
Sets the value ofEventSeries.getCount()
EventSeries.Builder
lastObservedTime(Instant lastObservedTime)
Sets the value ofEventSeries.getLastObservedTime()
-
-
-
Method Detail
-
count
@Stability(Stable) public EventSeries.Builder count(Number count)
Sets the value ofEventSeries.getCount()
- Parameters:
count
- count is the number of occurrences in this series up to the last heartbeat time. This parameter is required.- Returns:
this
-
lastObservedTime
@Stability(Stable) public EventSeries.Builder lastObservedTime(Instant lastObservedTime)
Sets the value ofEventSeries.getLastObservedTime()
- Parameters:
lastObservedTime
- lastObservedTime is the time when last Event from the series was seen before last heartbeat. This parameter is required.- Returns:
this
-
build
@Stability(Stable) public EventSeries build()
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<EventSeries>
- Returns:
- a new instance of
EventSeries
- Throws:
NullPointerException
- if any required attribute was not provided
-
-