java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<Hint.Builder>
co.elastic.clients.elasticsearch.security.suggest_user_profiles.Hint.Builder
All Implemented Interfaces:
WithJson<Hint.Builder>, ObjectBuilder<Hint>
Enclosing class:
Hint

public static class Hint.Builder
extends WithJsonObjectBuilderBase<Hint.Builder>
implements ObjectBuilder<Hint>
Builder for Hint.
  • Constructor Summary

    Constructors
    Constructor Description
    Builder()  
  • Method Summary

    Modifier and Type Method Description
    Hint build()
    Builds a Hint.
    Hint.Builder labels​(java.lang.String key, java.util.List<java.lang.String> value)
    A single key-value pair to match against the labels section of a profile.
    Hint.Builder labels​(java.util.Map<java.lang.String,​java.util.List<java.lang.String>> map)
    A single key-value pair to match against the labels section of a profile.
    protected Hint.Builder self()  
    Hint.Builder uids​(java.lang.String value, java.lang.String... values)
    A list of Profile UIDs to match against.
    Hint.Builder uids​(java.util.List<java.lang.String> list)
    A list of Profile UIDs to match against.

    Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase

    withJson

    Methods inherited from class co.elastic.clients.util.ObjectBuilderBase

    _checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface co.elastic.clients.json.WithJson

    withJson, withJson
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • uids

      public final Hint.Builder uids​(java.util.List<java.lang.String> list)
      A list of Profile UIDs to match against.

      API name: uids

      Adds all elements of list to uids.

    • uids

      public final Hint.Builder uids​(java.lang.String value, java.lang.String... values)
      A list of Profile UIDs to match against.

      API name: uids

      Adds one or more values to uids.

    • labels

      public final Hint.Builder labels​(java.util.Map<java.lang.String,​java.util.List<java.lang.String>> map)
      A single key-value pair to match against the labels section of a profile. A profile is considered matching if it matches at least one of the strings.

      API name: labels

      Adds all entries of map to labels.

    • labels

      public final Hint.Builder labels​(java.lang.String key, java.util.List<java.lang.String> value)
      A single key-value pair to match against the labels section of a profile. A profile is considered matching if it matches at least one of the strings.

      API name: labels

      Adds an entry to labels.

    • self

      protected Hint.Builder self()
      Specified by:
      self in class WithJsonObjectBuilderBase<Hint.Builder>
    • build

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