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 Details

    • Builder

      public Builder()
  • Method Details

    • uids

      public final Hint.Builder uids(List<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(String value, 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(Map<String,List<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(String key, List<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:
      NullPointerException - if some of the required fields are null.