Class GetMappingRequest.Builder

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

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

    • Builder

      public Builder()
  • Method Details

    • index

      public GetMappingRequest.Builder index​(@Nullable java.util.List<java.lang.String> value)
      A comma-separated list of index names

      API name: index

    • index

      public GetMappingRequest.Builder index​(java.lang.String... value)
      A comma-separated list of index names

      API name: index

    • addIndex

      public GetMappingRequest.Builder addIndex​(java.lang.String value)
      Add a value to index(List), creating the list if needed.
    • type

      public GetMappingRequest.Builder type​(@Nullable java.util.List<java.lang.String> value)
      A comma-separated list of document types

      API name: type

    • type

      public GetMappingRequest.Builder type​(java.lang.String... value)
      A comma-separated list of document types

      API name: type

    • addType

      public GetMappingRequest.Builder addType​(java.lang.String value)
      Add a value to type(List), creating the list if needed.
    • allowNoIndices

      public GetMappingRequest.Builder allowNoIndices​(@Nullable java.lang.Boolean value)
      Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes _all string or when no indices have been specified)

      API name: allow_no_indices

    • expandWildcards

      public GetMappingRequest.Builder expandWildcards​(@Nullable java.util.List<ExpandWildcardOptions> value)
      Whether to expand wildcard expression to concrete indices that are open, closed or both.

      API name: expand_wildcards

    • expandWildcards

      public GetMappingRequest.Builder expandWildcards​(ExpandWildcardOptions... value)
      Whether to expand wildcard expression to concrete indices that are open, closed or both.

      API name: expand_wildcards

    • addExpandWildcards

      public GetMappingRequest.Builder addExpandWildcards​(ExpandWildcardOptions value)
      Add a value to expandWildcards(List), creating the list if needed.
    • ignoreUnavailable

      public GetMappingRequest.Builder ignoreUnavailable​(@Nullable java.lang.Boolean value)
      Whether specified concrete indices should be ignored when unavailable (missing or closed)

      API name: ignore_unavailable

    • includeTypeName

      public GetMappingRequest.Builder includeTypeName​(@Nullable java.lang.Boolean value)
      Whether to add the type name to the response (default: false)

      API name: include_type_name

    • local

      public GetMappingRequest.Builder local​(@Nullable java.lang.Boolean value)
      Return local information, do not retrieve the state from master node (default: false)

      API name: local

    • masterTimeout

      public GetMappingRequest.Builder masterTimeout​(@Nullable java.lang.String value)
      Specify timeout for connection to master

      API name: master_timeout

    • build

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