Class LikeDocument.Builder

All Implemented Interfaces:
Enclosing class:

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

    • Builder

      public Builder()
  • Method Details

    • doc

      public final LikeDocument.Builder doc​(@Nullable JsonData value)
      API name: doc
    • fields

      public final LikeDocument.Builder fields​(java.util.List<java.lang.String> list)
      API name: fields

      Adds all elements of list to fields.

    • fields

      public final LikeDocument.Builder fields​(java.lang.String value, java.lang.String... values)
      API name: fields

      Adds one or more values to fields.

    • id

      public final LikeDocument.Builder id​(@Nullable java.lang.String value)
      API name: _id
    • type

      public final LikeDocument.Builder type​(@Nullable java.lang.String value)
      API name: _type
    • index

      public final LikeDocument.Builder index​(@Nullable java.lang.String value)
      API name: _index
    • perFieldAnalyzer

      public final LikeDocument.Builder perFieldAnalyzer​(java.util.Map<java.lang.String,​java.lang.String> map)
      API name: per_field_analyzer

      Adds all entries of map to perFieldAnalyzer.

    • perFieldAnalyzer

      public final LikeDocument.Builder perFieldAnalyzer​(java.lang.String key, java.lang.String value)
      API name: per_field_analyzer

      Adds an entry to perFieldAnalyzer.

    • routing

      public final LikeDocument.Builder routing​(@Nullable java.lang.String value)
      API name: routing
    • version

      public final LikeDocument.Builder version​(@Nullable java.lang.Long value)
      API name: version
    • versionType

      public final LikeDocument.Builder versionType​(@Nullable VersionType value)
      API name: version_type
    • build

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