Class GrokProcessor.Builder

All Implemented Interfaces:
Enclosing class:

public static class GrokProcessor.Builder
extends ProcessorBase.AbstractBuilder<GrokProcessor.Builder>
implements ObjectBuilder<GrokProcessor>
Builder for GrokProcessor.
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • field

      public final GrokProcessor.Builder field​(java.lang.String value)
      Required - API name: field
    • ignoreMissing

      public final GrokProcessor.Builder ignoreMissing​(@Nullable java.lang.Boolean value)
      API name: ignore_missing
    • patternDefinitions

      public final GrokProcessor.Builder patternDefinitions​(java.util.Map<java.lang.String,​java.lang.String> map)
      Required - API name: pattern_definitions

      Adds all entries of map to patternDefinitions.

    • patternDefinitions

      public final GrokProcessor.Builder patternDefinitions​(java.lang.String key, java.lang.String value)
      Required - API name: pattern_definitions

      Adds an entry to patternDefinitions.

    • patterns

      public final GrokProcessor.Builder patterns​(java.util.List<java.lang.String> list)
      Required - API name: patterns

      Adds all elements of list to patterns.

    • patterns

      public final GrokProcessor.Builder patterns​(java.lang.String value, java.lang.String... values)
      Required - API name: patterns

      Adds one or more values to patterns.

    • traceMatch

      public final GrokProcessor.Builder traceMatch​(@Nullable java.lang.Boolean value)
      API name: trace_match
    • self

      protected GrokProcessor.Builder self()
      Specified by:
      self in class ProcessorBase.AbstractBuilder<GrokProcessor.Builder>
    • build

      public GrokProcessor build()
      Builds a GrokProcessor.
      Specified by:
      build in interface ObjectBuilder<GrokProcessor>
      java.lang.NullPointerException - if some of the required fields are null.