Class MountRequest.Builder

All Implemented Interfaces:
Enclosing class:

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

    • Builder

      public Builder()
  • Method Details

    • ignoreIndexSettings

      public final MountRequest.Builder ignoreIndexSettings​(java.util.List<java.lang.String> list)
      API name: ignore_index_settings

      Adds all elements of list to ignoreIndexSettings.

    • ignoreIndexSettings

      public final MountRequest.Builder ignoreIndexSettings​(java.lang.String value, java.lang.String... values)
      API name: ignore_index_settings

      Adds one or more values to ignoreIndexSettings.

    • index

      public final MountRequest.Builder index​(java.lang.String value)
      Required - API name: index
    • indexSettings

      public final MountRequest.Builder indexSettings​(java.util.Map<java.lang.String,​JsonData> map)
      API name: index_settings

      Adds all entries of map to indexSettings.

    • indexSettings

      public final MountRequest.Builder indexSettings​(java.lang.String key, JsonData value)
      API name: index_settings

      Adds an entry to indexSettings.

    • masterTimeout

      public final MountRequest.Builder masterTimeout​(@Nullable Time value)
      Explicit operation timeout for connection to master node

      API name: master_timeout

    • masterTimeout

      public final MountRequest.Builder masterTimeout​(java.util.function.Function<Time.Builder,​ObjectBuilder<Time>> fn)
      Explicit operation timeout for connection to master node

      API name: master_timeout

    • renamedIndex

      public final MountRequest.Builder renamedIndex​(@Nullable java.lang.String value)
      API name: renamed_index
    • repository

      public final MountRequest.Builder repository​(java.lang.String value)
      Required - The name of the repository containing the snapshot of the index to mount

      API name: repository

    • snapshot

      public final MountRequest.Builder snapshot​(java.lang.String value)
      Required - The name of the snapshot of the index to mount

      API name: snapshot

    • storage

      public final MountRequest.Builder storage​(@Nullable java.lang.String value)
      Selects the kind of local storage used to accelerate searches. Experimental, and defaults to full_copy

      API name: storage

    • waitForCompletion

      public final MountRequest.Builder waitForCompletion​(@Nullable java.lang.Boolean value)
      Should this request wait until the operation has completed before returning

      API name: wait_for_completion

    • build

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