Class FieldAndFormat.Builder

java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.elasticsearch._types.query_dsl.FieldAndFormat.Builder
All Implemented Interfaces:
ObjectBuilder<FieldAndFormat>
Enclosing class:
FieldAndFormat

public static class FieldAndFormat.Builder
extends ObjectBuilderBase
implements ObjectBuilder<FieldAndFormat>
Builder for FieldAndFormat.
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • field

      public final FieldAndFormat.Builder field​(java.lang.String value)
      Required - Wildcard pattern. The request returns values for field names matching this pattern.

      API name: field

    • format

      public final FieldAndFormat.Builder format​(@Nullable java.lang.String value)
      Format in which the values are returned.

      API name: format

    • includeUnmapped

      public final FieldAndFormat.Builder includeUnmapped​(@Nullable java.lang.Boolean value)
      API name: include_unmapped
    • build

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