Interface PutAuditEventsRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,CloudTrailDataRequest.Builder,CopyableBuilder<PutAuditEventsRequest.Builder,,PutAuditEventsRequest> SdkBuilder<PutAuditEventsRequest.Builder,,PutAuditEventsRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
PutAuditEventsRequest
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
overrideConfigurationMethods inherited from interface software.amazon.awssdk.services.cloudtraildata.model.CloudTrailDataRequest.Builder
buildMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, 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.Builderavoiding the need to create one manually viaAuditEvent.builder().When the
Consumercompletes,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.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin 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.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
builderConsumer- AConsumerto which an emptyAwsRequestOverrideConfiguration.Builderwill be given.- Returns:
- This object for method chaining.
-