Interface Event.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<Event.Builder,
,Event> SdkBuilder<Event.Builder,
,Event> SdkPojo
- Enclosing class:
Event
-
Method Summary
Modifier and TypeMethodDescriptiondataSource
(String dataSource) The source,AWS_CLOUD_TRAIL
orAWS_CODE_DEPLOY
, where DevOps Guru analysis found the event.dataSource
(EventDataSource dataSource) The source,AWS_CLOUD_TRAIL
orAWS_CODE_DEPLOY
, where DevOps Guru analysis found the event.eventClass
(String eventClass) The class of the event.eventClass
(EventClass eventClass) The class of the event.eventSource
(String eventSource) The Amazon Web Services source that emitted the event.The ID of the event.The name of the event.default Event.Builder
resourceCollection
(Consumer<ResourceCollection.Builder> resourceCollection) Sets the value of the ResourceCollection property for this object.resourceCollection
(ResourceCollection resourceCollection) Sets the value of the ResourceCollection property for this object.resources
(Collection<EventResource> resources) AnEventResource
object that contains information about the resource that emitted the event.resources
(Consumer<EventResource.Builder>... resources) AnEventResource
object that contains information about the resource that emitted the event.resources
(EventResource... resources) AnEventResource
object that contains information about the resource that emitted the event.ATimestamp
that 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, sdkFieldNameToField, sdkFields
-
Method Details
-
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
Sets the value of the ResourceCollection property for this object. This is a convenience method that creates an instance of theResourceCollection.Builder
avoiding the need to create one manually viaResourceCollection.builder()
.When the
Consumer
completes,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:
-
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
A
Timestamp
that specifies the time the event occurred.- Parameters:
time
- ATimestamp
that specifies the time the event occurred.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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
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
The source,
AWS_CLOUD_TRAIL
orAWS_CODE_DEPLOY
, where DevOps Guru analysis found the event.- Parameters:
dataSource
- The source,AWS_CLOUD_TRAIL
orAWS_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:
-
dataSource
The source,
AWS_CLOUD_TRAIL
orAWS_CODE_DEPLOY
, where DevOps Guru analysis found the event.- Parameters:
dataSource
- The source,AWS_CLOUD_TRAIL
orAWS_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:
-
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
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:
-
resources
An
EventResource
object that contains information about the resource that emitted the event.- Parameters:
resources
- AnEventResource
object 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
An
EventResource
object that contains information about the resource that emitted the event.- Parameters:
resources
- AnEventResource
object 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
An
This is a convenience method that creates an instance of theEventResource
object that contains information about the resource that emitted the event.EventResource.Builder
avoiding the need to create one manually viaEventResource.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toresources(List<EventResource>)
.- 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:
-