Class PutLogEventsOptions.Builder

java.lang.Object
codes.grow.packages.cloudwatchlogs.PutLogEventsOptions.Builder
Enclosing class:
PutLogEventsOptions

public static final class PutLogEventsOptions.Builder extends Object
  • Method Details

    • autoCreate

      public PutLogEventsOptions.Builder autoCreate(Boolean value)
      Sets autoCreate: create a missing log stream and retry once (default config.autoCreate, true).
      Parameters:
      value - the value
      Returns:
      this builder
    • createGroup

      public PutLogEventsOptions.Builder createGroup(Boolean value)
      Sets createGroup: with autoCreate, also create a missing log group (default false).
      Parameters:
      value - the value
      Returns:
      this builder
    • maxEventBytes

      public PutLogEventsOptions.Builder maxEventBytes(Integer value)
      Sets maxEventBytes: per-event limit (default config.maxEventBytes).
      Parameters:
      value - the value
      Returns:
      this builder
    • oversizePolicy

      public PutLogEventsOptions.Builder oversizePolicy(OversizePolicy value)
      Sets oversizePolicy: oversize policy (default config.oversizePolicy).
      Parameters:
      value - the value
      Returns:
      this builder
    • build

      public PutLogEventsOptions build()
      Builds the options.
      Returns:
      the options