Interface PutAuditEventsRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CloudTrailDataRequest.Builder
,CopyableBuilder<PutAuditEventsRequest.Builder,
,PutAuditEventsRequest> SdkBuilder<PutAuditEventsRequest.Builder,
,PutAuditEventsRequest> SdkPojo
,SdkRequest.Builder
- Enclosing class:
PutAuditEventsRequest
@Mutable
@NotThreadSafe
public static interface PutAuditEventsRequest.Builder
extends CloudTrailDataRequest.Builder, SdkPojo, CopyableBuilder<PutAuditEventsRequest.Builder,PutAuditEventsRequest>
-
Method Summary
Modifier and TypeMethodDescriptionauditEvents
(Collection<AuditEvent> auditEvents) The JSON payload of events that you want to ingest.auditEvents
(Consumer<AuditEvent.Builder>... auditEvents) The JSON payload of events that you want to ingest.auditEvents
(AuditEvent... auditEvents) The JSON payload of events that you want to ingest.channelArn
(String channelArn) The ARN or ID (the ARN suffix) of a channel.externalId
(String externalId) A unique identifier that is conditionally required when the channel's resource policy includes an external ID.overrideConfiguration
(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration
(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
Methods inherited from interface software.amazon.awssdk.services.cloudtraildata.model.CloudTrailDataRequest.Builder
build
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
-
auditEvents
The JSON payload of events that you want to ingest. You can also point to the JSON event payload in a file.
- Parameters:
auditEvents
- The JSON payload of events that you want to ingest. You can also point to the JSON event payload in a file.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
auditEvents
The JSON payload of events that you want to ingest. You can also point to the JSON event payload in a file.
- Parameters:
auditEvents
- The JSON payload of events that you want to ingest. You can also point to the JSON event payload in a file.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
auditEvents
The JSON payload of events that you want to ingest. You can also point to the JSON event payload in a file.
This is a convenience method that creates an instance of theAuditEvent.Builder
avoiding the need to create one manually viaAuditEvent.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toauditEvents(List<AuditEvent>)
.- Parameters:
auditEvents
- a consumer that will call methods onAuditEvent.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
channelArn
The ARN or ID (the ARN suffix) of a channel.
- Parameters:
channelArn
- The ARN or ID (the ARN suffix) of a channel.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
externalId
A unique identifier that is conditionally required when the channel's resource policy includes an external ID. This value can be any string, such as a passphrase or account number.
- Parameters:
externalId
- A unique identifier that is conditionally required when the channel's resource policy includes an external ID. This value can be any string, such as a passphrase or account number.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
PutAuditEventsRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
overrideConfiguration
- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
PutAuditEventsRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
builderConsumer
- AConsumer
to which an emptyAwsRequestOverrideConfiguration.Builder
will be given.- Returns:
- This object for method chaining.
-