Class ExistsSourceRequest.Builder

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

public static class ExistsSourceRequest.Builder
extends java.lang.Object
implements ObjectBuilder<ExistsSourceRequest>
Builder for ExistsSourceRequest.
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • id

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

      API name: id

    • index

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

      API name: index

    • type

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

      API name: type

    • preference

      public 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 ExistsSourceRequest.Builder realtime​(@Nullable java.lang.Boolean value)
      Specify whether to perform the operation in realtime or search mode

      API name: realtime

    • refresh

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

      API name: refresh

    • routing

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

      API name: routing

    • source

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

      API name: _source

    • sourceExcludes

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

      API name: _source_excludes

    • sourceExcludes

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

      API name: _source_excludes

    • addSourceExcludes

      public ExistsSourceRequest.Builder addSourceExcludes​(java.lang.String value)
      Add a value to sourceExcludes(List), creating the list if needed.
    • sourceIncludes

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

      API name: _source_includes

    • sourceIncludes

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

      API name: _source_includes

    • addSourceIncludes

      public ExistsSourceRequest.Builder addSourceIncludes​(java.lang.String value)
      Add a value to sourceIncludes(List), creating the list if needed.
    • version

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

      API name: version

    • versionType

      public 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.