Class ExistsSourceRequest.Builder

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

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

    • Builder

      public Builder()
  • Method Details

    • source

      public final ExistsSourceRequest.Builder source​(@Nullable SourceConfigParam value)
      True or false to return the _source field or not, or a list of fields to return

      API name: _source

    • source

      public final ExistsSourceRequest.Builder source​(java.util.function.Function<SourceConfigParam.Builder,​ObjectBuilder<SourceConfigParam>> fn)
      True or false to return the _source field or not, or a list of fields to return

      API name: _source

    • sourceExcludes

      public final ExistsSourceRequest.Builder sourceExcludes​(java.util.List<java.lang.String> list)
      A list of fields to exclude from the returned _source field

      API name: _source_excludes

      Adds all elements of list to sourceExcludes.

    • sourceExcludes

      public final ExistsSourceRequest.Builder sourceExcludes​(java.lang.String value, java.lang.String... values)
      A list of fields to exclude from the returned _source field

      API name: _source_excludes

      Adds one or more values to sourceExcludes.

    • sourceIncludes

      public final ExistsSourceRequest.Builder sourceIncludes​(java.util.List<java.lang.String> list)
      A list of fields to extract and return from the _source field

      API name: _source_includes

      Adds all elements of list to sourceIncludes.

    • sourceIncludes

      public final ExistsSourceRequest.Builder sourceIncludes​(java.lang.String value, java.lang.String... values)
      A list of fields to extract and return from the _source field

      API name: _source_includes

      Adds one or more values to sourceIncludes.

    • id

      public final ExistsSourceRequest.Builder id​(java.lang.String value)
      Required - The document ID

      API name: id

    • index

      public final ExistsSourceRequest.Builder index​(java.lang.String value)
      Required - The name of the index

      API name: index

    • preference

      public final ExistsSourceRequest.Builder preference​(@Nullable java.lang.String value)
      Specify the node or shard the operation should be performed on (default: random)

      API name: preference

    • realtime

      public final ExistsSourceRequest.Builder realtime​(@Nullable java.lang.Boolean value)
      Specify whether to perform the operation in realtime or search mode

      API name: realtime

    • refresh

      public final ExistsSourceRequest.Builder refresh​(@Nullable java.lang.Boolean value)
      Refresh the shard containing the document before performing the operation

      API name: refresh

    • routing

      public final ExistsSourceRequest.Builder routing​(@Nullable java.lang.String value)
      Specific routing value

      API name: routing

    • type

      public final ExistsSourceRequest.Builder type​(@Nullable java.lang.String value)
      The type of the document; deprecated and optional starting with 7.0

      API name: type

    • version

      public final ExistsSourceRequest.Builder version​(@Nullable java.lang.Long value)
      Explicit version number for concurrency control

      API name: version

    • versionType

      public final ExistsSourceRequest.Builder versionType​(@Nullable VersionType value)
      Specific version type

      API name: version_type

    • build

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