Package org.cdk8s.plus24.k8s
Class EventSeriesV1Beta1.Builder
- java.lang.Object
-
- org.cdk8s.plus24.k8s.EventSeriesV1Beta1.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<EventSeriesV1Beta1>
- Enclosing interface:
- EventSeriesV1Beta1
@Stability(Stable) public static final class EventSeriesV1Beta1.Builder extends Object implements software.amazon.jsii.Builder<EventSeriesV1Beta1>
A builder forEventSeriesV1Beta1
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EventSeriesV1Beta1
build()
Builds the configured instance.EventSeriesV1Beta1.Builder
count(Number count)
Sets the value ofEventSeriesV1Beta1.getCount()
EventSeriesV1Beta1.Builder
lastObservedTime(Instant lastObservedTime)
Sets the value ofEventSeriesV1Beta1.getLastObservedTime()
-
-
-
Method Detail
-
count
@Stability(Stable) public EventSeriesV1Beta1.Builder count(Number count)
Sets the value ofEventSeriesV1Beta1.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 EventSeriesV1Beta1.Builder lastObservedTime(Instant lastObservedTime)
Sets the value ofEventSeriesV1Beta1.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 EventSeriesV1Beta1 build()
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<EventSeriesV1Beta1>
- Returns:
- a new instance of
EventSeriesV1Beta1
- Throws:
NullPointerException
- if any required attribute was not provided
-
-