Interface Event.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<Event.Builder,
,Event> SdkBuilder<Event.Builder,
,Event> SdkPojo
- Enclosing class:
Event
-
Method Summary
Modifier and TypeMethodDescriptionaccessKeyId
(String accessKeyId) The Amazon Web Services access key ID that was used to sign the request.cloudTrailEvent
(String cloudTrailEvent) A JSON string that contains a representation of the event returned.The CloudTrail ID of the event returned.The name of the event returned.eventSource
(String eventSource) The Amazon Web Services service to which the request was made.The date and time of the event returned.Information about whether the event is a write event or a read event.resources
(Collection<Resource> resources) A list of resources referenced by the event returned.resources
(Consumer<Resource.Builder>... resources) A list of resources referenced by the event returned.A list of resources referenced by the event returned.A user name or role name of the requester that called the API in the event returned.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 Details
-
eventId
The CloudTrail ID of the event returned.
- Parameters:
eventId
- The CloudTrail ID of the event returned.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
eventName
The name of the event returned.
- Parameters:
eventName
- The name of the event returned.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
readOnly
Information about whether the event is a write event or a read event.
- Parameters:
readOnly
- Information about whether the event is a write event or a read event.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
accessKeyId
The Amazon Web Services access key ID that was used to sign the request. If the request was made with temporary security credentials, this is the access key ID of the temporary credentials.
- Parameters:
accessKeyId
- The Amazon Web Services access key ID that was used to sign the request. If the request was made with temporary security credentials, this is the access key ID of the temporary credentials.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
eventTime
The date and time of the event returned.
- Parameters:
eventTime
- The date and time of the event returned.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
eventSource
The Amazon Web Services service to which the request was made.
- Parameters:
eventSource
- The Amazon Web Services service to which the request was made.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
username
A user name or role name of the requester that called the API in the event returned.
- Parameters:
username
- A user name or role name of the requester that called the API in the event returned.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resources
A list of resources referenced by the event returned.
- Parameters:
resources
- A list of resources referenced by the event returned.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resources
A list of resources referenced by the event returned.
- Parameters:
resources
- A list of resources referenced by the event returned.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resources
A list of resources referenced by the event returned.
This is a convenience method that creates an instance of theResource.Builder
avoiding the need to create one manually viaResource.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toresources(List<Resource>)
.- Parameters:
resources
- a consumer that will call methods onResource.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
cloudTrailEvent
A JSON string that contains a representation of the event returned.
- Parameters:
cloudTrailEvent
- A JSON string that contains a representation of the event returned.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-