Interface ServiceEvent.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<ServiceEvent.Builder,,ServiceEvent> SdkBuilder<ServiceEvent.Builder,,ServiceEvent> SdkPojo
- Enclosing class:
ServiceEvent
@Mutable
@NotThreadSafe
public static interface ServiceEvent.Builder
extends SdkPojo, CopyableBuilder<ServiceEvent.Builder,ServiceEvent>
-
Method Summary
Modifier and TypeMethodDescriptiondefault ServiceEvent.Builderactor(Consumer<EventActor.Builder> actor) The actor that triggered the event.actor(EventActor actor) The actor that triggered the event.default ServiceEvent.BuildereventDetails(Consumer<ServiceEventDetails.Builder> eventDetails) The details of the event.eventDetails(ServiceEventDetails eventDetails) The details of the event.The unique identifier of the event.The type of the event.eventType(ServiceEventType eventType) The type of the event.serviceArn(String serviceArn) Sets the value of the ServiceArn property for this object.The timestamp of the event.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
eventId
The unique identifier of the event.
- Parameters:
eventId- The unique identifier of the event.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
timestamp
The timestamp of the event.
- Parameters:
timestamp- The timestamp of the event.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
eventType
The type of the event.
- Parameters:
eventType- The type of the event.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
eventType
The type of the event.
- Parameters:
eventType- The type of the event.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
serviceArn
Sets the value of the ServiceArn property for this object.- Parameters:
serviceArn- The new value for the ServiceArn property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
actor
The actor that triggered the event.
- Parameters:
actor- The actor that triggered the event.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
actor
The actor that triggered the event.
This is a convenience method that creates an instance of theEventActor.Builderavoiding the need to create one manually viaEventActor.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toactor(EventActor).- Parameters:
actor- a consumer that will call methods onEventActor.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
eventDetails
The details of the event.
- Parameters:
eventDetails- The details of the event.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
eventDetails
The details of the event.
This is a convenience method that creates an instance of theServiceEventDetails.Builderavoiding the need to create one manually viaServiceEventDetails.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toeventDetails(ServiceEventDetails).- Parameters:
eventDetails- a consumer that will call methods onServiceEventDetails.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-