Class Hint.Builder
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 Hintbuild()Builds aHint.Hint.Builderlabels(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.Builderlabels(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.Builderself()Hint.Builderuids(java.lang.String value, java.lang.String... values)A list of Profile UIDs to match against.Hint.Builderuids(java.util.List<java.lang.String> list)A list of Profile UIDs to match against.Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJsonMethods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAllMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
uids
A list of Profile UIDs to match against.API name:
uidsAdds all elements of
listtouids. -
uids
A list of Profile UIDs to match against.API name:
uidsAdds 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:
labelsAdds all entries of
maptolabels. -
labels
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:
labelsAdds an entry to
labels. -
self
- Specified by:
selfin classWithJsonObjectBuilderBase<Hint.Builder>
-
build
Builds aHint.- Specified by:
buildin interfaceObjectBuilder<Hint>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-