Interface EventSource.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<EventSource.Builder,
,EventSource> SdkBuilder<EventSource.Builder,
,EventSource> SdkPojo
- Enclosing class:
EventSource
@Mutable
@NotThreadSafe
public static interface EventSource.Builder
extends SdkPojo, CopyableBuilder<EventSource.Builder,EventSource>
-
Method Summary
Modifier and TypeMethodDescriptiondefault EventSource.Builder
parameters
(Consumer<EventParameters.Builder> parameters) Information about the event.parameters
(EventParameters parameters) Information about the event.The source of the event.type
(EventSourceValues type) The source of the event.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
type
The source of the event. Currently only managed CloudWatch Events rules are supported.
- Parameters:
type
- The source of the event. Currently only managed CloudWatch Events rules are supported.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
type
The source of the event. Currently only managed CloudWatch Events rules are supported.
- Parameters:
type
- The source of the event. Currently only managed CloudWatch Events rules are supported.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
parameters
Information about the event.
- Parameters:
parameters
- Information about the event.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
parameters
Information about the event.
This is a convenience method that creates an instance of theEventParameters.Builder
avoiding the need to create one manually viaEventParameters.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toparameters(EventParameters)
.- Parameters:
parameters
- a consumer that will call methods onEventParameters.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-