Package org.cdk8s.plus24.k8s
Class EventSource.Builder
- java.lang.Object
-
- org.cdk8s.plus24.k8s.EventSource.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<EventSource>
- Enclosing interface:
- EventSource
@Stability(Stable) public static final class EventSource.Builder extends Object implements software.amazon.jsii.Builder<EventSource>
A builder forEventSource
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EventSource
build()
Builds the configured instance.EventSource.Builder
component(String component)
Sets the value ofEventSource.getComponent()
EventSource.Builder
host(String host)
Sets the value ofEventSource.getHost()
-
-
-
Method Detail
-
component
@Stability(Stable) public EventSource.Builder component(String component)
Sets the value ofEventSource.getComponent()
- Parameters:
component
- Component from which the event is generated.- Returns:
this
-
host
@Stability(Stable) public EventSource.Builder host(String host)
Sets the value ofEventSource.getHost()
- Parameters:
host
- Node name on which the event is generated.- Returns:
this
-
build
@Stability(Stable) public EventSource build()
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<EventSource>
- Returns:
- a new instance of
EventSource
- Throws:
NullPointerException
- if any required attribute was not provided
-
-