Class RerouteProcessor.Builder

All Implemented Interfaces:
WithJson<RerouteProcessor.Builder>, ObjectBuilder<RerouteProcessor>
Enclosing class:
RerouteProcessor

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

    • Builder

      public Builder()
  • Method Details

    • destination

      public final RerouteProcessor.Builder destination(@Nullable String value)
      A static value for the target. Can’t be set when the dataset or namespace option is set.

      API name: destination

    • dataset

      public final RerouteProcessor.Builder dataset(List<String> list)
      Field references or a static value for the dataset part of the data stream name. In addition to the criteria for index names, cannot contain - and must be no longer than 100 characters. Example values are nginx.access and nginx.error.

      Supports field references with a mustache-like syntax (denoted as {{double}} or {{{triple}}} curly braces). When resolving field references, the processor replaces invalid characters with _. Uses the <dataset> part of the index name as a fallback if all field references resolve to a null, missing, or non-string value.

      default {{data_stream.dataset}}

      API name: dataset

      Adds all elements of list to dataset.

    • dataset

      public final RerouteProcessor.Builder dataset(String value, String... values)
      Field references or a static value for the dataset part of the data stream name. In addition to the criteria for index names, cannot contain - and must be no longer than 100 characters. Example values are nginx.access and nginx.error.

      Supports field references with a mustache-like syntax (denoted as {{double}} or {{{triple}}} curly braces). When resolving field references, the processor replaces invalid characters with _. Uses the <dataset> part of the index name as a fallback if all field references resolve to a null, missing, or non-string value.

      default {{data_stream.dataset}}

      API name: dataset

      Adds one or more values to dataset.

    • namespace

      public final RerouteProcessor.Builder namespace(List<String> list)
      Field references or a static value for the namespace part of the data stream name. See the criteria for index names for allowed characters. Must be no longer than 100 characters.

      Supports field references with a mustache-like syntax (denoted as {{double}} or {{{triple}}} curly braces). When resolving field references, the processor replaces invalid characters with _. Uses the <namespace> part of the index name as a fallback if all field references resolve to a null, missing, or non-string value.

      default {{data_stream.namespace}}

      API name: namespace

      Adds all elements of list to namespace.

    • namespace

      public final RerouteProcessor.Builder namespace(String value, String... values)
      Field references or a static value for the namespace part of the data stream name. See the criteria for index names for allowed characters. Must be no longer than 100 characters.

      Supports field references with a mustache-like syntax (denoted as {{double}} or {{{triple}}} curly braces). When resolving field references, the processor replaces invalid characters with _. Uses the <namespace> part of the index name as a fallback if all field references resolve to a null, missing, or non-string value.

      default {{data_stream.namespace}}

      API name: namespace

      Adds one or more values to namespace.

    • self

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

      public RerouteProcessor build()
      Specified by:
      build in interface ObjectBuilder<RerouteProcessor>
      Throws:
      NullPointerException - if some of the required fields are null.