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 Modifier and Type Method Description Event.BuilderaccessKeyId(String accessKeyId)The Amazon Web Services access key ID that was used to sign the request.Event.BuildercloudTrailEvent(String cloudTrailEvent)A JSON string that contains a representation of the event returned.Event.BuildereventId(String eventId)The CloudTrail ID of the event returned.Event.BuildereventName(String eventName)The name of the event returned.Event.BuildereventSource(String eventSource)The Amazon Web Services service to which the request was made.Event.BuildereventTime(Instant eventTime)The date and time of the event returned.Event.BuilderreadOnly(String readOnly)Information about whether the event is a write event or a read event.Event.Builderresources(Collection<Resource> resources)A list of resources referenced by the event returned.Event.Builderresources(Consumer<Resource.Builder>... resources)A list of resources referenced by the event returned.Event.Builderresources(Resource... resources)A list of resources referenced by the event returned.Event.Builderusername(String username)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 Detail
-
eventId
Event.Builder eventId(String 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
Event.Builder eventName(String 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
Event.Builder readOnly(String 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
Event.Builder accessKeyId(String 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
Event.Builder eventTime(Instant 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
Event.Builder eventSource(String 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
Event.Builder username(String 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
Event.Builder resources(Collection<Resource> 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
Event.Builder resources(Resource... 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
Event.Builder resources(Consumer<Resource.Builder>... resources)
A list of resources referenced by the event returned.
This is a convenience method that creates an instance of theResource.Builderavoiding the need to create one manually viaResource.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 onResource.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#resources(java.util.Collection)
-
cloudTrailEvent
Event.Builder cloudTrailEvent(String 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.
-
-