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 Hint
build()
Builds aHint
.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
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
uids
A list of Profile UIDs to match against.API name:
uids
Adds all elements of
list
touids
. -
uids
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
tolabels
. -
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:
labels
Adds an entry to
labels
. -
self
- Specified by:
self
in classWithJsonObjectBuilderBase<Hint.Builder>
-
build
Builds aHint
.- Specified by:
build
in interfaceObjectBuilder<Hint>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.
-