Class CloudWatchLogsConfig.Builder

Enclosing class:
CloudWatchLogsConfig

public static class CloudWatchLogsConfig.Builder extends AbstractServiceConfigBuilder<CloudWatchLogsConfig.Builder,CloudWatchLogsConfig>
  • Method Details

    • maxEventsPerQuery

      public CloudWatchLogsConfig.Builder maxEventsPerQuery(int maxEventsPerQuery)
      Sets the maximum number of events returned per log query.
      Parameters:
      maxEventsPerQuery - the maximum number of events returned per log query (default 10000)
      Returns:
      this builder
    • queryCompletionDelayMs

      public CloudWatchLogsConfig.Builder queryCompletionDelayMs(long queryCompletionDelayMs)
      Sets the artificial Logs Insights query completion delay, in milliseconds. With the default 0, queries complete immediately (fast local dev). A positive value emulates the real asynchronous lifecycle — StartQuery → Running → Complete after this delay — which also makes StopQuery on a still-running query return success=true.
      Parameters:
      queryCompletionDelayMs - the query completion delay, in milliseconds (default 0L)
      Returns:
      this builder
    • build

      public CloudWatchLogsConfig build()
      Creates an immutable CloudWatchLogsConfig from this builder.
      Specified by:
      build in class AbstractServiceConfigBuilder<CloudWatchLogsConfig.Builder,CloudWatchLogsConfig>
      Returns:
      the CloudWatch Logs configuration