Class NodeShard.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • allocationId

        @Nonnull
        public final NodeShard.Builder allocationId​(java.util.Map<java.lang.String,​java.lang.String> map)
        API name: allocation_id

        Adds all elements of map to allocationId.

      • allocationId

        @Nonnull
        public final NodeShard.Builder allocationId​(java.lang.String key,
                                                    java.lang.String value)
        API name: allocation_id

        Adds an entry to allocationId.

      • index

        @Nonnull
        public final NodeShard.Builder index​(java.lang.String value)
        Required - API name: index
      • node

        @Nonnull
        public final NodeShard.Builder node​(@Nullable
                                            java.lang.String value)
        API name: node
      • primary

        @Nonnull
        public final NodeShard.Builder primary​(boolean value)
        Required - API name: primary
      • recoverySource

        @Nonnull
        public final NodeShard.Builder recoverySource​(java.util.Map<java.lang.String,​java.lang.String> map)
        The recovery source information for this shard.

        API name: recovery_source

        Adds all elements of map to recoverySource.

      • recoverySource

        @Nonnull
        public final NodeShard.Builder recoverySource​(java.lang.String key,
                                                      java.lang.String value)
        The recovery source information for this shard.

        API name: recovery_source

        Adds an entry to recoverySource.

      • relocatingNode

        @Nonnull
        public final NodeShard.Builder relocatingNode​(@Nullable
                                                      java.lang.String value)
        API name: relocating_node
      • searchOnly

        @Nonnull
        public final NodeShard.Builder searchOnly​(@Nullable
                                                  java.lang.Boolean value)
        Indicates if this shard is configured for search operations only

        API name: searchOnly

      • shard

        @Nonnull
        public final NodeShard.Builder shard​(int value)
        Required - API name: shard