public static class AWSCloudTrailProcessingExecutor.Builder
extends java.lang.Object
AWSCloudTrailProcessingExecutor object.| Constructor and Description |
|---|
Builder(EventsProcessor eventsProcessor,
ProcessingConfiguration config)
Builder for
AWSCloudTrailProcessingExecutor. |
Builder(EventsProcessor eventsProcessor,
java.lang.String propertyFilePath)
Builder for
AWSCloudTrailProcessingExecutor. |
public Builder(EventsProcessor eventsProcessor, java.lang.String propertyFilePath)
AWSCloudTrailProcessingExecutor.eventsProcessor - The EventsProcessor that will process CloudTrailEvents.propertyFilePath - The path to a property file containing the AWS CloudTrail Processing Library's
configuration.public Builder(EventsProcessor eventsProcessor, ProcessingConfiguration config)
AWSCloudTrailProcessingExecutor.eventsProcessor - The EventsProcessor instance that will process CloudTrailEvents.config - An ProcessingConfiguration instance that provides the library's
configuration details.public AWSCloudTrailProcessingExecutor.Builder withSourceFilter(SourceFilter sourceFilter)
SourceFilter to this instance.sourceFilter - The SourceFilter that will be used to filter CloudTrailSource source.Builder instance, using the specified SourceFilter.public AWSCloudTrailProcessingExecutor.Builder withEventFilter(EventFilter eventFilter)
EventFilter to this instance.eventFilter - The EventFilter that will be used to filter CloudTrailEvents.Builder instance, using the specified EventFilter.public AWSCloudTrailProcessingExecutor.Builder withProgressReporter(ProgressReporter progressReporter)
ProgressReporter to this instance.progressReporter - The ProgressReporter that will report
the state of the AWSCloudTrailProcessingLibrary processing process.Builder instance, using the specified ProgressReporter.public AWSCloudTrailProcessingExecutor.Builder withExceptionHandler(ExceptionHandler exceptionHandler)
ExceptionHandler to this instance.exceptionHandler - The ExceptionHandler that will handle exceptions for
this instance.Builder instance, using the specified
ExceptionHandler.public AWSCloudTrailProcessingExecutor.Builder withSourceSerializer(SourceSerializer sourceSerializer)
SourceSerializer to this instance.sourceSerializer - TheSourceSerializer that gets the CloudTrailSource from the SQS message
object for this instance.Builder instance, using the specified SourceSerializerpublic AWSCloudTrailProcessingExecutor.Builder withThreadPool(java.util.concurrent.ExecutorService mainThreadPool)
mainThreadPool - The ExecutorService thread pool that will be used to
process CloudTrailSourceBuilder instance, using the specified thread pool.public AWSCloudTrailProcessingExecutor.Builder withS3Client(AmazonS3 s3Client)
s3Client - the AmazonS3 object used to download CloudTrail log filesBuilder instance, using the specified AmazonS3.public AWSCloudTrailProcessingExecutor.Builder withS3Manager(S3Manager s3Manager)
S3Manager to this instance.
User-defined s3Client will not be used if user provides the user-defined S3Manager.s3Manager - the S3Manager object used to manage Amazon S3 service-related operationsBuilder instance, using the specified AmazonS3.public AWSCloudTrailProcessingExecutor.Builder withSQSClient(AmazonSQS sqsClient)
sqsClient - The AmazonSQS that will be used to poll messages from
the SQS queue.Builder instance, using the specified
AmazonSQS.public AWSCloudTrailProcessingExecutor build()
AWSCloudTrailProcessingExecutor using the classpath property file.