Interface Event.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<Event.Builder,Event>,SdkBuilder<Event.Builder,Event>,SdkPojo
- Enclosing class:
- Event
public static interface Event.Builder extends SdkPojo, CopyableBuilder<Event.Builder,Event>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description Event.BuilderdataSource(String dataSource)The source,AWS_CLOUD_TRAILorAWS_CODE_DEPLOY, where DevOps Guru analysis found the event.Event.BuilderdataSource(EventDataSource dataSource)The source,AWS_CLOUD_TRAILorAWS_CODE_DEPLOY, where DevOps Guru analysis found the event.Event.BuildereventClass(String eventClass)The class of the event.Event.BuildereventClass(EventClass eventClass)The class of the event.Event.BuildereventSource(String eventSource)The Amazon Web Services source that emitted the event.Event.Builderid(String id)The ID of the event.Event.Buildername(String name)The name of the event.default Event.BuilderresourceCollection(Consumer<ResourceCollection.Builder> resourceCollection)Sets the value of the ResourceCollection property for this object.Event.BuilderresourceCollection(ResourceCollection resourceCollection)Sets the value of the ResourceCollection property for this object.Event.Builderresources(Collection<EventResource> resources)AnEventResourceobject that contains information about the resource that emitted the event.Event.Builderresources(Consumer<EventResource.Builder>... resources)AnEventResourceobject that contains information about the resource that emitted the event.Event.Builderresources(EventResource... resources)AnEventResourceobject that contains information about the resource that emitted the event.Event.Buildertime(Instant time)ATimestampthat specifies the time the event occurred.-
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, sdkFields
-
-
-
-
Method Detail
-
resourceCollection
Event.Builder resourceCollection(ResourceCollection resourceCollection)
Sets the value of the ResourceCollection property for this object.- Parameters:
resourceCollection- The new value for the ResourceCollection property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resourceCollection
default Event.Builder resourceCollection(Consumer<ResourceCollection.Builder> resourceCollection)
Sets the value of the ResourceCollection property for this object. This is a convenience method that creates an instance of theResourceCollection.Builderavoiding the need to create one manually viaResourceCollection.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toresourceCollection(ResourceCollection).- Parameters:
resourceCollection- a consumer that will call methods onResourceCollection.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
resourceCollection(ResourceCollection)
-
id
Event.Builder id(String id)
The ID of the event.
- Parameters:
id- The ID of the event.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
time
Event.Builder time(Instant time)
A
Timestampthat specifies the time the event occurred.- Parameters:
time- ATimestampthat specifies the time the event occurred.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
eventSource
Event.Builder eventSource(String eventSource)
The Amazon Web Services source that emitted the event.
- Parameters:
eventSource- The Amazon Web Services source that emitted the event.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
name
Event.Builder name(String name)
The name of the event.
- Parameters:
name- The name of the event.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dataSource
Event.Builder dataSource(String dataSource)
The source,
AWS_CLOUD_TRAILorAWS_CODE_DEPLOY, where DevOps Guru analysis found the event.- Parameters:
dataSource- The source,AWS_CLOUD_TRAILorAWS_CODE_DEPLOY, where DevOps Guru analysis found the event.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
EventDataSource,EventDataSource
-
dataSource
Event.Builder dataSource(EventDataSource dataSource)
The source,
AWS_CLOUD_TRAILorAWS_CODE_DEPLOY, where DevOps Guru analysis found the event.- Parameters:
dataSource- The source,AWS_CLOUD_TRAILorAWS_CODE_DEPLOY, where DevOps Guru analysis found the event.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
EventDataSource,EventDataSource
-
eventClass
Event.Builder eventClass(String eventClass)
The class of the event. The class specifies what the event is related to, such as an infrastructure change, a deployment, or a schema change.
- Parameters:
eventClass- The class of the event. The class specifies what the event is related to, such as an infrastructure change, a deployment, or a schema change.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
EventClass,EventClass
-
eventClass
Event.Builder eventClass(EventClass eventClass)
The class of the event. The class specifies what the event is related to, such as an infrastructure change, a deployment, or a schema change.
- Parameters:
eventClass- The class of the event. The class specifies what the event is related to, such as an infrastructure change, a deployment, or a schema change.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
EventClass,EventClass
-
resources
Event.Builder resources(Collection<EventResource> resources)
An
EventResourceobject that contains information about the resource that emitted the event.- Parameters:
resources- AnEventResourceobject that contains information about the resource that emitted the event.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resources
Event.Builder resources(EventResource... resources)
An
EventResourceobject that contains information about the resource that emitted the event.- Parameters:
resources- AnEventResourceobject that contains information about the resource that emitted the event.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resources
Event.Builder resources(Consumer<EventResource.Builder>... resources)
An
This is a convenience method that creates an instance of theEventResourceobject that contains information about the resource that emitted the event.EventResource.Builderavoiding the need to create one manually viaEventResource.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#resources(List.) - Parameters:
resources- a consumer that will call methods onEventResource.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#resources(java.util.Collection)
-
-